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/tasks | |
parent | 4e9a93a38d0bbc6940a54b484b5d902f2d481a4d (diff) | |
download | gitlab-ce-736b5908da637cbb35eb5fd1a10790c2ee17fcde.tar.gz |
Avoid calling freeze on already frozen strings in lib
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/graphql.rake | 4 | ||||
-rw-r--r-- | lib/tasks/gitlab/uploads/legacy.rake | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/graphql.rake b/lib/tasks/gitlab/graphql.rake index c53d55ceea2..fd8df015903 100644 --- a/lib/tasks/gitlab/graphql.rake +++ b/lib/tasks/gitlab/graphql.rake @@ -3,8 +3,8 @@ return if Rails.env.production? namespace :gitlab do - OUTPUT_DIR = Rails.root.join("doc/api/graphql/reference").freeze - TEMPLATES_DIR = 'lib/gitlab/graphql/docs/templates/'.freeze + OUTPUT_DIR = Rails.root.join("doc/api/graphql/reference") + TEMPLATES_DIR = 'lib/gitlab/graphql/docs/templates/' namespace :graphql do desc 'GitLab | Generate GraphQL docs' diff --git a/lib/tasks/gitlab/uploads/legacy.rake b/lib/tasks/gitlab/uploads/legacy.rake index 18fb8afe455..2eeb694d341 100644 --- a/lib/tasks/gitlab/uploads/legacy.rake +++ b/lib/tasks/gitlab/uploads/legacy.rake @@ -11,7 +11,7 @@ namespace :gitlab do include ::EachBatch end - migration = 'LegacyUploadsMigrator'.freeze + migration = 'LegacyUploadsMigrator' batch_size = 5000 delay_interval = 5.minutes.to_i |