From 9a4c86344dbfb488f857c1c1c31b48b4a8a352e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Antonio=20Pinochet=20Olave?= Date: Wed, 26 Jun 2024 18:43:52 -0400 Subject: [PATCH] Fix linter --- tmx_wangset.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tmx_wangset.go b/tmx_wangset.go index 79445c3..1d44e78 100644 --- a/tmx_wangset.go +++ b/tmx_wangset.go @@ -99,11 +99,11 @@ func (w *WangSet) GetWangColors(tileID uint32) (map[WangPosition]*WangColor, err } // convert from CSV to array of strings - wangIdsString := strings.Split(tile.WangID, ",") + wangIDsString := strings.Split(tile.WangID, ",") // convert from array of strings to slice of uint32 - var wangIds []uint32 // will contain a slice of the wangIds - for _, v := range wangIdsString { + var wangIDs []uint32 // will contain a slice of the wangIDs + for _, v := range wangIDsString { id64, err := strconv.ParseUint(v, 10, 32) if err != nil { return nil, errors.New("internal error") @@ -112,12 +112,12 @@ func (w *WangSet) GetWangColors(tileID uint32) (map[WangPosition]*WangColor, err // uint64 to uint32 id := uint32(id64) - wangIds = append(wangIds, id) + wangIDs = append(wangIDs, id) } wangColors := make(map[WangPosition]*WangColor) - for i, id := range wangIds { + for i, id := range wangIDs { if id == 0 { // no color assigned if id is 0, set to nil wangColors[WangPosition(i)] = nil } else {