Skip to content

Commit

Permalink
Silence golang static checker
Browse files Browse the repository at this point in the history
static check complaining that `== true` is superfluous for a boolean var.
  • Loading branch information
jeffwidman authored and edenhill committed Sep 7, 2021
1 parent 4676126 commit 605c471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/consumer_example/consumer_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {

run := true

for run == true {
for run {
select {
case sig := <-sigchan:
fmt.Printf("Caught signal %v: terminating\n", sig)
Expand Down

0 comments on commit 605c471

Please sign in to comment.