Skip to content

Commit

Permalink
[enhancement] thread-safe explicit iteration over Qonfig::CommandSet …
Browse files Browse the repository at this point in the history
…(#each)
  • Loading branch information
Rustam Ibragimov committed Jun 6, 2018
1 parent c5491bd commit f870658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qonfig/command_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def add_command(command)
# @api private
# @since 0.1.0
def each(&block)
block_given? ? commands.each(&block) : commands.each
thread_safe { block_given? ? commands.each(&block) : commands.each }
end

# @param command_set [Qonfig::CommandSet]
Expand Down

0 comments on commit f870658

Please sign in to comment.