Skip to content

Commit

Permalink
fix switch error
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-mescudi committed Dec 11, 2024
1 parent 930b32b commit 26ace87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Decodeimage(path string) (image.Image, error) {
return jpeg.Decode(file)
case ".jpeg":
return jpeg.Decode(file)
case "png":
case ".png":
return png.Decode(file)
}

Expand Down

0 comments on commit 26ace87

Please sign in to comment.