We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee862f4 commit baf6217Copy full SHA for baf6217
routers/api/v1/repo/issue_lock.go
@@ -60,9 +60,9 @@ func LockIssue(ctx *context.APIContext) {
60
caser := cases.Title(language.English)
61
reason := web.GetForm(ctx).(*api.LockIssueOption).Reason
62
reason = strings.ToLower(reason)
63
- reason_parts := strings.Split(reason, " ")
64
- reason_parts[0] = caser.String(reason_parts[0])
65
- reason = strings.Join(reason_parts, " ")
+ reasonParts := strings.Split(reason, " ")
+ reasonParts[0] = caser.String(reasonParts[0])
+ reason = strings.Join(reasonParts, " ")
66
67
if !issues_model.IsValidReason(reason) {
68
ctx.APIError(http.StatusBadRequest, errors.New("reason not valid"))
0 commit comments