Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8030eb

Browse files
committed
避免空的
1 parent 9aeadf5 commit a8030eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/logic/download.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func (DownloadLogic) AddNewDownload(ctx context.Context, version, selector strin
9494
}
9595
})
9696

97+
if download.Kind == "" {
98+
return
99+
}
100+
97101
has, err := MasterDB.Where("filename=?", download.Filename).Exist(new(model.Download))
98102
if err != nil || has {
99103
return

0 commit comments

Comments
 (0)