Skip to content

Commit

Permalink
lint: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Oct 6, 2024
1 parent 5942d1a commit 8b89eb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/gocq/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ func printQRCode(imgData []byte) {
isUpWhite := img.At(x, y).(color.Gray).Y == 255
isDownWhite := utils.Ternary(y < bound-padding, img.At(x, y+1).(color.Gray).Y == 255, false)

if !isUpWhite && !isDownWhite {
switch {
case !isUpWhite && !isDownWhite:
buf = append(buf, bb...)
} else if isUpWhite && !isDownWhite {
case isUpWhite && !isDownWhite:
buf = append(buf, wb...)
} else if !isUpWhite {
case !isUpWhite:
buf = append(buf, bw...)
} else {
default:
buf = append(buf, ww...)
}
}
Expand Down

0 comments on commit 8b89eb8

Please sign in to comment.