Skip to content

Commit

Permalink
🚨 Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slashformotion committed Jan 1, 2022
1 parent 5b57c7d commit bca4bfd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,5 @@ func Encode(w io.Writer, img image.Image) error {
func getBooleanFromColor(c color.Color) bool {
r, g, b, _ := c.RGBA()
lum := (r + g + b) / 3
if lum > uint32(0xffff)/2 {
return false
} else {
return true
}
return lum <= uint32(0xffff)/2
}

0 comments on commit bca4bfd

Please sign in to comment.