mirror of
https://github.com/stashapp/stash.git
synced 2026-05-04 18:41:22 +02:00
Correct error propagation (#1703)
Rename an inner error to imageErr. This avoids a shadowing of an error in the following lines which aren't returned otherwise.
This commit is contained in:
parent
b482fbc796
commit
d2a0a8fe4c
1 changed files with 3 additions and 3 deletions
|
|
@ -229,9 +229,9 @@ func (t *StashBoxPerformerTagTask) stashBoxPerformerTag() {
|
|||
}
|
||||
|
||||
if len(performer.Images) > 0 {
|
||||
image, err := utils.ReadImageFromURL(performer.Images[0])
|
||||
if err != nil {
|
||||
return err
|
||||
image, imageErr := utils.ReadImageFromURL(performer.Images[0])
|
||||
if imageErr != nil {
|
||||
return imageErr
|
||||
}
|
||||
err = r.Performer().UpdateImage(createdPerformer.ID, image)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue