We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d747664 commit 5652487Copy full SHA for 5652487
lib/splitclient-rb/validators.rb
@@ -57,8 +57,12 @@ def valid_flag_sets(method, flag_sets)
57
end
58
without_nil = Array.new
59
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?
+ if !flag_set.nil?
+ without_nil.push(flag_set)
62
+ next
63
+ end
64
+
65
+ log_nil("flag set", method)
66
}
67
if without_nil.length() == 0
68
log_invalid_flag_set_type(method)
0 commit comments