Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Feb 14, 2020
1 parent 2899621 commit 97baa6a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/thor/parser/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,16 @@ def check_unknown!

protected

def assign_result!(option, result)
if option.repeatable && option.type == :hash
(@assigns[option.human_name] ||= {}).merge!(result)
elsif option.repeatable
(@assigns[option.human_name] ||= []) << result
else
@assigns[option.human_name] = result
def assign_result!(option, result)
if option.repeatable && option.type == :hash
(@assigns[option.human_name] ||= {}).merge!(result)
elsif option.repeatable
(@assigns[option.human_name] ||= []) << result
else
@assigns[option.human_name] = result
end
end
end

# Check if the current value in peek is a registered switch.
#
# Two booleans are returned. The first is true if the current value
Expand Down

0 comments on commit 97baa6a

Please sign in to comment.