Memoize ci_yaml_file.
This commit is contained in:
parent
f523c3c685
commit
3f1e72a0cc
|
@ -199,7 +199,7 @@ module Ci
|
|||
end
|
||||
|
||||
def ci_yaml_file
|
||||
gl_project.repository.blob_at(sha, '.gitlab-ci.yml').data
|
||||
@ci_yaml_file ||= gl_project.repository.blob_at(sha, '.gitlab-ci.yml').data
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue