add one more type to isZero helper

This commit is contained in:
Dawid Wysokiński 2021-01-06 17:10:07 +01:00
parent fd0f42bc85
commit 6e6a97360d
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ func isZero(v interface{}) bool {
return c == nil || len(c) == 0
case []VersionCode:
return c == nil || len(c) == 0
case []ServerStatus:
return c == nil || len(c) == 0
case int:
return c == 0
case *int: