Fix NewCommitStatus (#9434) (#9435)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser authored and Antoine GIRARD committed 2019-12-19 23:49:47 +01:00
1 parent e03934f035
commit a276aaf61e
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -41,8 +41,8 @@ func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption) {
// schema:
// "$ref": "#/definitions/CreateStatusOption"
// responses:
// "200":
// "$ref": "#/responses/StatusList"
// "201":
// "$ref": "#/responses/Status"
sha := ctx.Params("sha")
if len(sha) == 0 {
ctx.Error(400, "sha not given", nil)