Commit 1814fef8 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix/sm/35825-api-specs-and-linting-failing-on-master' into 'master'

Fix "API specs and linting failing on master"

Closes #35825

See merge request !13227
parents 3f230455 0c5fbaa7
...@@ -88,6 +88,7 @@ module API ...@@ -88,6 +88,7 @@ module API
variable = user_group.variables.find_by(key: params[:key]) variable = user_group.variables.find_by(key: params[:key])
not_found!('GroupVariable') unless variable not_found!('GroupVariable') unless variable
status 204
variable.destroy variable.destroy
end end
end end
......
...@@ -33,10 +33,6 @@ module API ...@@ -33,10 +33,6 @@ module API
@project ||= find_project!(params[:id]) @project ||= find_project!(params[:id])
end end
def user_group
@group ||= find_group!(params[:id])
end
def available_labels def available_labels
@available_labels ||= LabelsFinder.new(current_user, project_id: user_project.id).execute @available_labels ||= LabelsFinder.new(current_user, project_id: user_project.id).execute
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment