Skip to content

Commit bca4bfd

Browse files
🚨 Fix linter warning
1 parent 5b57c7d commit bca4bfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

writer.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,5 @@ func Encode(w io.Writer, img image.Image) error {
6464
func getBooleanFromColor(c color.Color) bool {
6565
r, g, b, _ := c.RGBA()
6666
lum := (r + g + b) / 3
67-
if lum > uint32(0xffff)/2 {
68-
return false
69-
} else {
70-
return true
71-
}
67+
return lum <= uint32(0xffff)/2
7268
}

0 commit comments

Comments
 (0)