Skip to content

Commit 0f135a3

Browse files
authored
Make linter happy
1 parent fc892a8 commit 0f135a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/repo/attachment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ func (a *Attachment) RelativePath() string {
5858

5959
// DownloadURL returns the download url of the attached file
6060
func (a *Attachment) DownloadURL() string {
61-
if a.CustomDownloadURL == "" {
62-
return setting.AppURL + "attachments/" + url.PathEscape(a.UUID)
63-
} else {
61+
if a.CustomDownloadURL != "" {
6462
return a.CustomDownloadURL
6563
}
64+
65+
return setting.AppURL + "attachments/" + url.PathEscape(a.UUID)
6666
}
6767

6868
// _____ __ __ .__ __

0 commit comments

Comments
 (0)