Skip to content

Commit a40d3b2

Browse files
committed
Apply suggestions from code review
1 parent 7d13e26 commit a40d3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/bind/params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ var (
2929
// explicit UUID 2566760 462.1 ns/op 32 B/op 2 allocs/op
3030
// asUUID 2103366 595.9 ns/op 48 B/op 3 allocs/op
3131
func asUUID(v interface{}) (value.Value, bool) {
32+
// explicit casting of type [16]byte to uuid.UUID will success,
33+
// but casting of [16]byte to some interface with methods from uuid.UUID will failed
3234
if _, ok := v.(interface {
3335
URN() string
34-
ClockSequence() int
35-
ID() uint32
3636
}); !ok {
3737
return nil, false
3838
}

0 commit comments

Comments
 (0)