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 ca2c402 commit c9b1c56Copy full SHA for c9b1c56
1 file changed
lib/split/experiment_storage.rb
@@ -57,11 +57,9 @@ def exists?
57
def load_alternatives
58
alts = Split.configuration.experiment_for(@name)[:alternatives]
59
raise ArgumentError, "Experiment configuration is missing :alternatives array" unless alts
60
- if alts.is_a?(Hash)
61
- alts.keys
62
- else
63
- alts.flatten
64
- end
+
+ alts = alts.keys if alts.is_a?(Hash)
+ alts.flatten
65
end
66
67
def load_metadata
0 commit comments