diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-10-11 13:12:21 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-10-13 02:31:31 -0700 |
commit | e166e5747c6e8130f1227b427113f1231d9f46f1 (patch) | |
tree | 9cf61f1a7388bfce3f22fd927ee9582d37b8910b /lib/gitlab/cache | |
parent | 79ba38920144191320df1e6529b8feab4acef758 (diff) | |
download | gitlab-ce-e166e5747c6e8130f1227b427113f1231d9f46f1.tar.gz |
Enable some frozen string in lib/gitlab
Enable frozen string for the following files:
* lib/gitlab/auth/**/*.rb
* lib/gitlab/badge/**/*.rb
* lib/gitlab/bare_repository_import/**/*.rb
* lib/gitlab/bitbucket_import/**/*.rb
* lib/gitlab/bitbucket_server_import/**/*.rb
* lib/gitlab/cache/**/*.rb
* lib/gitlab/checks/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'lib/gitlab/cache')
-rw-r--r-- | lib/gitlab/cache/ci/project_pipeline_status.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/cache/request_cache.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/cache/ci/project_pipeline_status.rb b/lib/gitlab/cache/ci/project_pipeline_status.rb index add048d671e..b369b9e7600 100644 --- a/lib/gitlab/cache/ci/project_pipeline_status.rb +++ b/lib/gitlab/cache/ci/project_pipeline_status.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This class is not backed by a table in the main database. # It loads the latest Pipeline for the HEAD of a repository, and caches that # in Redis. diff --git a/lib/gitlab/cache/request_cache.rb b/lib/gitlab/cache/request_cache.rb index b96e161a5b6..4c658dc0b8d 100644 --- a/lib/gitlab/cache/request_cache.rb +++ b/lib/gitlab/cache/request_cache.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Gitlab module Cache # See https://docs.gitlab.com/ee/development/utilities.html#requestcache |