Skip to content

Commit 605c471

Browse files
jeffwidmanedenhill
authored andcommitted
Silence golang static checker
static check complaining that `== true` is superfluous for a boolean var.
1 parent 4676126 commit 605c471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/consumer_example/consumer_example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func main() {
6565

6666
run := true
6767

68-
for run == true {
68+
for run {
6969
select {
7070
case sig := <-sigchan:
7171
fmt.Printf("Caught signal %v: terminating\n", sig)

0 commit comments

Comments
 (0)