Skip to content

Commit 5652487

Browse files
committed
polish
1 parent d747664 commit 5652487

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/splitclient-rb/validators.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ def valid_flag_sets(method, flag_sets)
5757
end
5858
without_nil = Array.new
5959
flag_sets.each { |flag_set|
60-
without_nil.push(flag_set) if !flag_set.nil?
61-
log_nil("flag set", method) if flag_set.nil?
60+
if !flag_set.nil?
61+
without_nil.push(flag_set)
62+
next
63+
end
64+
65+
log_nil("flag set", method)
6266
}
6367
if without_nil.length() == 0
6468
log_invalid_flag_set_type(method)

0 commit comments

Comments
 (0)