diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 18:08:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-16 18:08:46 +0000 |
commit | aa0f0e992153e84e1cdec8a1c7310d5eb93a9f8f (patch) | |
tree | 4a662bc77fb43e1d1deec78cc7a95d911c0da1c5 /lib/api/variables.rb | |
parent | d47f9d2304dbc3a23bba7fe7a5cd07218eeb41cd (diff) | |
download | gitlab-ce-aa0f0e992153e84e1cdec8a1c7310d5eb93a9f8f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/variables.rb')
-rw-r--r-- | lib/api/variables.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/variables.rb b/lib/api/variables.rb index f022b9e665a..192b06b8a1b 100644 --- a/lib/api/variables.rb +++ b/lib/api/variables.rb @@ -111,9 +111,10 @@ module API variable = user_project.variables.find_by(key: params[:key]) not_found!('Variable') unless variable - # Variables don't have any timestamp. Therfore, destroy unconditionally. - status 204 + # Variables don't have a timestamp. Therefore, destroy unconditionally. variable.destroy + + no_content! end # rubocop: enable CodeReuse/ActiveRecord end |