Skip to content

Commit 1bbedae

Browse files
committed
fix lint
1 parent a1dc25b commit 1bbedae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

models/issue_comment.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,9 @@ func sendCreateCommentAction(e *xorm.Session, opts *CreateCommentOptions, commen
631631
return err
632632
}
633633
}
634-
// update the issue's updated_unix column
635-
if err = updateIssueCols(e, opts.Issue, "updated_unix"); err != nil {
636-
return err
637-
}
638634

639-
return nil
635+
// update the issue's updated_unix column
636+
return updateIssueCols(e, opts.Issue, "updated_unix")
640637
}
641638

642639
func createStatusComment(e *xorm.Session, doer *User, issue *Issue) (*Comment, error) {

0 commit comments

Comments
 (0)