diff options
| author | historia <[not public]> | 2026-09-16 15:00:46 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 15:00:46 -0400 |
| commit | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch) | |
| tree | 194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/game/cmd_walk.go | |
| parent | 9192d94dea6be5498ab080f3e2df5667af871d7a (diff) | |
| download | thehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz | |
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/game/cmd_walk.go')
| -rw-r--r-- | internal/game/cmd_walk.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
