fix golint

This commit is contained in:
Tnze
2021-12-08 11:01:56 +08:00
parent bcae505a59
commit 4d0f7e7a7e
10 changed files with 1018 additions and 1013 deletions

View File

@ -279,7 +279,7 @@ func parseTag(f reflect.StructField, v reflect.Value, tagName string) (result ta
}
nbtType := f.Tag.Get("nbt_type")
result.Type, v = getTagType(v)
result.Type, _ = getTagType(v)
if strings.Contains(nbtType, "list") {
if IsArrayTag(result.Type) {
result.Type = TagList // for expanding the array to a standard list