Skip to content

Commit

Permalink
[RuboCop] Eats, shoots & leaves.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Nov 20, 2015
1 parent d551205 commit 32827d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/commit/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def handle_removed(pod, version_name, committer, commit_sha)
if version = PodVersion.find(:pod => pod, :name => version_name)
log_deleted_version(version, committer)
version.update(:deleted => true)

first_or_add_commit(version, commit_sha, {}, committer)
end
end
Expand All @@ -138,7 +138,7 @@ def fetch_spec(commit_sha, file)

# Either adds a commit or returns the first found.
#
def first_or_add_commit version, commit_sha, spec, committer
def first_or_add_commit(version, commit_sha, spec, committer)
version.commits_dataset.first(:sha => commit_sha) ||
version.add_commit(
:sha => commit_sha,
Expand Down

0 comments on commit 32827d8

Please sign in to comment.