diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 15:14:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-02 15:14:26 +0300 |
commit | ce459835cb32ed396fb7524fb615a5d07f8c51ef (patch) | |
tree | bc56e024828f25d53f8b713b4d8f6393b8755112 /scripts/api | |
parent | 374f3dee7dc0fae10a34daf503b8bf3078008f4b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/api')
-rw-r--r-- | scripts/api/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/api/base.rb b/scripts/api/base.rb index 4872ede253d..972b461a09a 100644 --- a/scripts/api/base.rb +++ b/scripts/api/base.rb @@ -8,7 +8,7 @@ class Base @project = options.fetch(:project) # If api_token is nil, it's set to '' to allow unauthenticated requests (for forks). - api_token = options.fetch(:api_token, '') + api_token = options[:api_token] || '' warn "No API token given." if api_token.empty? |