Skip to content

Commit

Permalink
Use named parameters for method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
oleander committed Nov 15, 2024
1 parent 8cf8136 commit 4c71860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/git_fame/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def run
end

thread = spinner.run do
Render.new(result: result, **options(:branch))
Render.new(result:, **options(:branch))
end

thread.value.call
Expand All @@ -150,11 +150,11 @@ def repo
end

def collector
Collector.new(filter: filter, diff: diff, **options)
Collector.new(filter:, diff:, **options)
end

def diff
Diff.new(commit: commit, **options)
Diff.new(commit:, **options)
end

def options(*args)
Expand Down

0 comments on commit 4c71860

Please sign in to comment.