summaryrefslogtreecommitdiffstats
path: root/services/comments/comments.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/comments/comments.go')
-rw-r--r--services/comments/comments.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/comments/comments.go b/services/comments/comments.go
index 296f06d75c..6f63060c45 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -40,7 +40,7 @@ func CreateIssueComment(doer *user_model.User, repo *repo_model.Repository, issu
// UpdateComment updates information of comment.
func UpdateComment(c *models.Comment, doer *user_model.User, oldContent string) error {
- var needsContentHistory = c.Content != oldContent &&
+ needsContentHistory := c.Content != oldContent &&
(c.Type == models.CommentTypeComment || c.Type == models.CommentTypeReview || c.Type == models.CommentTypeCode)
if needsContentHistory {
hasContentHistory, err := issues.HasIssueContentHistory(db.DefaultContext, c.IssueID, c.ID)