Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <[email protected]>
  • Loading branch information
yxxhero committed Apr 16, 2022
1 parent 926c377 commit 6c33d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions manager/handlers/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ func (h *Handlers) CreateJob(ctx *gin.Context) {
return
}

// ctx.JSON(http.StatusOK, job)
ctx.JSON(http.StatusOK, gin.H{
"task_id": job.TaskID,
})
ctx.JSON(http.StatusOK, job)
default:
ctx.JSON(http.StatusUnprocessableEntity, gin.H{"errors": "Unknow type"})
}
Expand Down
2 changes: 1 addition & 1 deletion manager/types/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ type PreheatArgs struct {
URL string `json:"url" binding:"required"`
Filter string `json:"filter" binding:"omitempty"`
Headers map[string]string `json:"headers" binding:"omitempty"`
Username string `json:"username" binding:"omiempty"`
Username string `json:"username" binding:"omitempty"`
Password string `json:"password" binding:"omitempty"`
}

0 comments on commit 6c33d61

Please sign in to comment.