Skip to content

Commit bec7e95

Browse files
Flatten features
1 parent 26f3a7b commit bec7e95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gems/smithy-client/lib/smithy-client/features.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Client
66
module Features
77
class << self
88
def track(*features, &block)
9+
features = features.flatten
910
Thread.current[:smithy_ruby_features] ||= Set.new
1011
added = features.map { |f| Thread.current[:smithy_ruby_features].add?(f) }
1112
block.call

0 commit comments

Comments
 (0)