Fix a few issues found by newer hlint
Testing with a newer hlint found a few minor issues; but all are real, valid recommendations: - don't use "if cond then f x else f y", but "f (if cond then x else y)" - "if a then b else True" is equivalent to the simpler "not a || b" - and as usual, one more ignore to our "testing basic properties" module Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- htest/Test/Ganeti/BasicTypes.hs 1 addition, 0 deletionshtest/Test/Ganeti/BasicTypes.hs
- htest/Test/Ganeti/HTools/Loader.hs 1 addition, 3 deletionshtest/Test/Ganeti/HTools/Loader.hs
- htools/Ganeti/HTools/Cluster.hs 5 additions, 5 deletionshtools/Ganeti/HTools/Cluster.hs
- htools/Ganeti/HTools/Program/Hcheck.hs 6 additions, 6 deletionshtools/Ganeti/HTools/Program/Hcheck.hs
- htools/Ganeti/Luxi.hs 3 additions, 3 deletionshtools/Ganeti/Luxi.hs
Loading
Please register or sign in to comment