Skip to content

Commit afe83ba

Browse files
author
Marko Bogdanović
authored
Merge pull request #247 from bmarkons/remove-double-assignment
Remove double assignment to initiator
2 parents e6913df + 83e848f commit afe83ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/benchmark_runs_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ def create
66

77
initiator =
88
if params[:commit_hash]
9-
initiator = repo.commits.find_by_sha1(params[:commit_hash])
9+
repo.commits.find_by_sha1(params[:commit_hash])
1010
elsif params[:version]
11-
initiator = repo.releases.find_or_create_by!(version: params[:version])
11+
repo.releases.find_or_create_by!(version: params[:version])
1212
end
1313

1414
benchmark_type = repo.benchmark_types.find_or_create_by!(

0 commit comments

Comments
 (0)