Remove cache_sha parameter

This commit is contained in:
Matija Čupić 2018-10-26 14:53:04 +02:00
parent 2864c1eeb8
commit 0079fa19ce
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ module Gitlab
end
end
def self.cache_key_for_project(project, cache_sha = project.commit&.sha)
"#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{cache_sha}"
def self.cache_key_for_project(project)
"#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{project.commit&.sha}"
end
def self.update_for_pipeline(pipeline)