Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Return only the feature, sans FEATURE_

  • Loading branch information...
commit 6dad19041fafaa5fd7dd85bf52ffa721937420a8 1 parent 2ba69f5
@bkaney authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/binflip.rb
View
10 lib/binflip.rb
@@ -115,10 +115,10 @@ def features_rollout
end
def features_environment
- ENV.keys.reduce([]) do |a,k|
- if (k =~ environment_key_pattern)
- a << $1
- end
- end.to_set
+ ENV.keys.reduce(Set.new) do |s,k|
+ s << $1 if (k =~ environment_key_pattern)
+ s
+ end
end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.