Memoize ci_yaml_file.

This commit is contained in:
Douwe Maan 2015-12-08 12:57:03 +01:00
parent f523c3c685
commit 3f1e72a0cc
1 changed files with 1 additions and 1 deletions

View File

@ -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