Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rubocop #1230

Merged
merged 14 commits into from
Jan 12, 2022
4 changes: 2 additions & 2 deletions library/network/src/modules/PortRanges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def FlattenServices(old_list, protocol)
new_min = nil
new_max = nil
# rubocop:disable Lint/DuplicateBranch
# wrong detection of dupliate branch as if cause logic and workflow
# wrong detection of duplicate branch as if cause logic and workflow
# the second one is inside the first one
if Ops.less_or_equal(min_pr, this_min_pr) &&
Ops.greater_or_equal(max_pr, this_max_pr)
Expand All @@ -586,7 +586,7 @@ def FlattenServices(old_list, protocol)
new_max = this_max_pr
# the second one partly covers the first one (by its left side)
elsif Ops.greater_or_equal(min_pr, this_min_pr) &&
Ops.less_or_equal(max_pr, this_max_pr)
Ops.greater_or_equal(max_pr, this_max_pr)
dgdavid marked this conversation as resolved.
Show resolved Hide resolved
# take this_min_pr & max_pr
any_change_during_this_loop = true
new_min = this_min_pr
Expand Down