1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-15 05:08:40 +00:00

main: len() works on nil now

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2022-04-03 22:34:48 -04:00
parent 7935b59876
commit 742dd407b4
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -258,7 +258,7 @@ func app() error {
if err != nil { if err != nil {
return err return err
} }
if result != nil && len(result) > 0 { if len(result) > 0 {
fmt.Printf("%#v\n", result) fmt.Printf("%#v\n", result)
} }