Skip to content

Commit

Permalink
Remove #process_commit_data default sha value
Browse files Browse the repository at this point in the history
As with the previous commit, this default value was relevant when this
method was also used to process git log output. It no longer is, and its
only caller passes the sha value, so we can remove the default.

Signed-off-by: Simon Coffey <simon.coffey@futurelearn.com>
  • Loading branch information
Simon Coffey committed Jan 17, 2023
1 parent 59dd023 commit 7924fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/lib.rb
Expand Up @@ -224,7 +224,7 @@ def commit_data(sha)
process_commit_data(cdata, sha)
end

def process_commit_data(data, sha = nil)
def process_commit_data(data, sha)
hsh = {
'sha' => sha,
'parent' => []
Expand Down

0 comments on commit 7924fc9

Please sign in to comment.