diff options
author | Dinesh Panda <dineshpanda92@gmail.com> | 2019-09-10 08:11:43 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-09-10 08:11:43 +0000 |
commit | 736b5908da637cbb35eb5fd1a10790c2ee17fcde (patch) | |
tree | 50d6d25be103c767e920cbfdf7df650670572fe6 /lib/api/helpers.rb | |
parent | 4e9a93a38d0bbc6940a54b484b5d902f2d481a4d (diff) | |
download | gitlab-ce-736b5908da637cbb35eb5fd1a10790c2ee17fcde.tar.gz |
Avoid calling freeze on already frozen strings in lib
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 5755f4b8d74..e61b25721fb 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -5,10 +5,10 @@ module API include Gitlab::Utils include Helpers::Pagination - SUDO_HEADER = "HTTP_SUDO".freeze - GITLAB_SHARED_SECRET_HEADER = "Gitlab-Shared-Secret".freeze + SUDO_HEADER = "HTTP_SUDO" + GITLAB_SHARED_SECRET_HEADER = "Gitlab-Shared-Secret" SUDO_PARAM = :sudo - API_USER_ENV = 'gitlab.api.user'.freeze + API_USER_ENV = 'gitlab.api.user' def declared_params(options = {}) options = { include_parent_namespaces: false }.merge(options) |