Skip to content

Commit e7d605c

Browse files
committed
fix: update comment
1 parent 8278ac9 commit e7d605c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (a *Attachment) IncreaseDownloadCount() error {
5050
sess := x.NewSession()
5151
defer sessionRelease(sess)
5252

53-
// Update repository count.
53+
// Update download count.
5454
if _, err := sess.Exec("UPDATE `attachment` SET download_count=download_count+1 WHERE id=?", a.ID); err != nil {
5555
return fmt.Errorf("increase attachment count: %v", err)
5656
}

0 commit comments

Comments
 (0)