Respond with no content for pipeline JSON actions
This commit is contained in:
parent
a1debf5cf0
commit
b8960354fe
|
@ -97,9 +97,7 @@ class Projects::PipelinesController < Projects::ApplicationController
|
||||||
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
|
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
|
||||||
end
|
end
|
||||||
|
|
||||||
format.json do
|
format.json { head :no_content }
|
||||||
render status: 204
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -111,9 +109,7 @@ class Projects::PipelinesController < Projects::ApplicationController
|
||||||
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
|
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
|
||||||
end
|
end
|
||||||
|
|
||||||
format.json do
|
format.json { head :no_content }
|
||||||
render status: 204
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue