Respond with no content for pipeline JSON actions

This commit is contained in:
Grzegorz Bizon 2017-04-12 09:44:16 +02:00
parent a1debf5cf0
commit b8960354fe
1 changed files with 2 additions and 6 deletions

View File

@ -97,9 +97,7 @@ class Projects::PipelinesController < Projects::ApplicationController
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
end
format.json do
render status: 204
end
format.json { head :no_content }
end
end
@ -111,9 +109,7 @@ class Projects::PipelinesController < Projects::ApplicationController
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
end
format.json do
render status: 204
end
format.json { head :no_content }
end
end