Skip to content

Commit baf6217

Browse files
committed
Fix code style
1 parent ee862f4 commit baf6217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/api/v1/repo/issue_lock.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ func LockIssue(ctx *context.APIContext) {
6060
caser := cases.Title(language.English)
6161
reason := web.GetForm(ctx).(*api.LockIssueOption).Reason
6262
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, " ")
63+
reasonParts := strings.Split(reason, " ")
64+
reasonParts[0] = caser.String(reasonParts[0])
65+
reason = strings.Join(reasonParts, " ")
6666

6767
if !issues_model.IsValidReason(reason) {
6868
ctx.APIError(http.StatusBadRequest, errors.New("reason not valid"))

0 commit comments

Comments
 (0)