Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-02 09:08:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-02 09:08:59 +0300
commit5ab92edc77d032261ce105e3fa13355b92f8ed32 (patch)
treed2628c82859c7c8810481ec54c7d564f2e080b78 /lib/gitlab/shell.rb
parent0409a31740fa29fa1131c0496da16677cb3debe4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/shell.rb')
-rw-r--r--lib/gitlab/shell.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb
index bc59d4ce943..ba822955133 100644
--- a/lib/gitlab/shell.rb
+++ b/lib/gitlab/shell.rb
@@ -24,9 +24,7 @@ module Gitlab
#
# @return [String] secret token
def secret_token
- @secret_token ||= begin
- File.read(Gitlab.config.gitlab_shell.secret_file).chomp
- end
+ @secret_token ||= File.read(Gitlab.config.gitlab_shell.secret_file).chomp
end
# Ensure gitlab shell has a secret token stored in the secret_file