Skip to content

Commit 5d7eaf8

Browse files
committed
🐛fix: Fix panic caused when arg is nil
1 parent e191cf9 commit 5d7eaf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} {
8181
return dst
8282
case time.Time, time.Duration, encoding.BinaryMarshaler, net.IP:
8383
return append(dst, arg)
84+
case nil:
85+
return dst
8486
default:
8587
// scan struct field
8688
v := reflect.ValueOf(arg)

0 commit comments

Comments
 (0)