Skip to content

Commit

Permalink
Optimize comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
moredure authored and pmazzini committed May 31, 2021
1 parent 54f4812 commit ebcbcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flw.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func FLWRuok(servers []string, timeout time.Duration) []bool {
continue
}

if bytes.Equal(response[:4], []byte("imok")) {
if string(response[:4]) == "imok" {
oks[i] = true
}
}
Expand Down

0 comments on commit ebcbcaa

Please sign in to comment.