From a6cf03a6ae98e4fb675da25046d148e92bcf7206 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 15:00:46 -0400 Subject: chore: staticcheck and gofmt cleanups --- internal/game/cmd_walk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_walk.go') diff --git a/internal/game/cmd_walk.go b/internal/game/cmd_walk.go index 80600af..101c0fe 100644 --- a/internal/game/cmd_walk.go +++ b/internal/game/cmd_walk.go @@ -53,7 +53,7 @@ func parseWalkDirections(input string) ([]string, error) { num = 1 } if i >= len(input) { - return nil, fmt.Errorf("Unexpected end of directions.") + return nil, fmt.Errorf("unexpected end of directions") } ch := input[i] i++ @@ -88,7 +88,7 @@ func parseWalkDirections(input string) ([]string, error) { case 'd': dir = string(world.Down) default: - return nil, fmt.Errorf("Unknown direction: %c", ch) + return nil, fmt.Errorf("unknown direction: %c", ch) } for j := 0; j < num; j++ { dirs = append(dirs, dir) -- cgit v1.2.3