Skip to content

Commit 3f201e3

Browse files
Skip Suvamikeproeng37
authored andcommitted
Use parens to prevent string literal in condition (#116)
1 parent ed1147b commit 3f201e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/project_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def initialize(datafile, logger, error_handler)
8787
@feature_flags = config.fetch('featureFlags', [])
8888
@groups = config.fetch('groups', [])
8989
@project_id = config['projectId']
90-
@anonymize_ip = config.key? 'anonymizeIP' ? config['anonymizeIP'] : false
90+
@anonymize_ip = config.key?('anonymizeIP') ? config['anonymizeIP'] : false
9191
@revision = config['revision']
9292
@rollouts = config.fetch('rollouts', [])
9393

0 commit comments

Comments
 (0)