Skip to content

Commit 61f3ec6

Browse files
committed
fix(image): check for nil values
1 parent 115be20 commit 61f3ec6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/utils/image.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import (
66
)
77

88
func ImageEqual(img1, img2 image.Image) bool {
9+
if img1 == nil || img2 == nil {
10+
return img1 == img2
11+
}
12+
913
if !img1.Bounds().Eq(img2.Bounds()) {
1014
return false
1115
}

0 commit comments

Comments
 (0)