diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-20 12:00:32 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:17:17 +0100 |
| commit | 5c8dd17404820e631fa3d5a82a67f07d067695bd (patch) | |
| tree | 5ce54fc2a15fd005b55f92e3dbee600a5c6237fa /go/game/map.go | |
| parent | a72f4331a052c3e01ee27fc2cb96c9c12fed1651 (diff) | |
| download | muhqs-game-5c8dd17404820e631fa3d5a82a67f07d067695bd.tar.gz muhqs-game-5c8dd17404820e631fa3d5a82a67f07d067695bd.zip | |
intermediate commit
* Add static analysis and improve Makefile
* Implement hints from static code analysis
Diffstat (limited to 'go/game/map.go')
| -rw-r--r-- | go/game/map.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/map.go b/go/game/map.go index ebf59d25..c84dc519 100644 --- a/go/game/map.go +++ b/go/game/map.go @@ -214,7 +214,7 @@ func (m *Map) RandomTileFromSymbols(symbols []string) (Position, error) { for _, symbol := range symbols { tileString, ok := m.symbols[symbol] if !ok { - return INVALID_POSITION(), errors.New(fmt.Sprintf("symbol %s not in the map symbols %v", symbol, m.symbols)) + return INVALID_POSITION(), fmt.Errorf(fmt.Sprintf("symbol %s not in the map symbols %v", symbol, m.symbols)) } tileType, ok := TileNames[tileString] |
