Skip to content

Commit

Permalink
Remove () in conditional expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Mar 15, 2024
1 parent ecd12f0 commit 66a9d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bosh-director/lib/bosh/director/cidr_range_combiner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def combine_adjacent_ranges(range_tuples)
can_combine = false
break
end
if (range_tuple[1].succ == next_range_tuple[0])
if range_tuple[1].succ == next_range_tuple[0]
range_tuple[1] = next_range_tuple[1]
i += 1
# does not cover all cases: 10/32, 10/8
elsif ((range_tuple[0] < next_range_tuple[0]) && (range_tuple[1] > next_range_tuple[1]))
elsif (range_tuple[0] < next_range_tuple[0]) && (range_tuple[1] > next_range_tuple[1])
i += 1
else
can_combine = false
Expand Down

0 comments on commit 66a9d2e

Please sign in to comment.