Skip to content

Commit fc2f84a

Browse files
authored
Use net.IP.Equal instead of bytes.Equal (#49)
As suggested by go-staticcheck.
1 parent 06f9b47 commit fc2f84a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: sonyflake_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package sonyflake
22

33
import (
4-
"bytes"
54
"errors"
65
"fmt"
76
"net"
@@ -259,7 +258,7 @@ func TestPrivateIPv4(t *testing.T) {
259258
return
260259
}
261260

262-
if bytes.Equal(actual, tc.expected) {
261+
if net.IP.Equal(actual, tc.expected) {
263262
return
264263
} else {
265264
t.Errorf("error: expected: %s, but got: %s", tc.expected, actual)

0 commit comments

Comments
 (0)