Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
npinochet committed Jun 26, 2024
1 parent 45d794b commit 29a0a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmx_wangset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 105 in tmx_wangset.go

View workflow job for this annotation

GitHub Actions / test

var wangIds should be wangIDs
for _, v := range wangIdsString {
for _, v := range wangIDsString {
id64, err := strconv.ParseUint(v, 10, 32)
if err != nil {
return nil, errors.New("internal error")
Expand Down

0 comments on commit 29a0a14

Please sign in to comment.