mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03: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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user