Fix err shadow

This commit is contained in:
kolaente 2020-04-18 23:53:46 +02:00
parent 43eb8f4af5
commit e434ca9a13
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ func checkBucketAndTaskBelongToSameList(t *Task) (err error) {
if t.BucketID != 0 {
b, err := getBucketByID(t.BucketID)
if err != nil {
return
return err
}
if t.ListID != b.ListID {
return ErrBucketDoesNotBelongToList{