From 5c8dd17404820e631fa3d5a82a67f07d067695bd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 20 Jan 2023 12:00:32 +0100 Subject: intermediate commit * Add static analysis and improve Makefile * Implement hints from static code analysis --- go/game/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/map.go') 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] -- cgit v1.2.3