Skip to content

Commit 2127f78

Browse files
committed
chore: make lint happy
1 parent c4ad185 commit 2127f78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

factory/img.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ func LoadAllFrames(path string, w, h int) ([]*Factory, error) {
8989
}
9090
} else {
9191
im, err = fio.LoadGIF(path)
92+
if err != nil {
93+
return nil, err
94+
}
9295
}
9396
img, err := Load(path)
9497
if err != nil {
@@ -119,6 +122,9 @@ func LoadAllTrueFrames(path string, w, h int) ([]*Factory, error) {
119122
}
120123
} else {
121124
im, err = fio.LoadGIF(path)
125+
if err != nil {
126+
return nil, err
127+
}
122128
}
123129
imgWidth, imgHeight := getGifDimensions(im)
124130
overpaintImage := image.NewRGBA(image.Rect(0, 0, imgWidth, imgHeight))

0 commit comments

Comments
 (0)