Skip to content

Commit ebcbcaa

Browse files
moredurepmazzini
authored andcommitted
Optimize comparison
1 parent 54f4812 commit ebcbcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func FLWRuok(servers []string, timeout time.Duration) []bool {
138138
continue
139139
}
140140

141-
if bytes.Equal(response[:4], []byte("imok")) {
141+
if string(response[:4]) == "imok" {
142142
oks[i] = true
143143
}
144144
}

0 commit comments

Comments
 (0)