Skip to content

Commit

Permalink
gofmt simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Nov 17, 2018
1 parent 8be4c07 commit 57e41b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions day87/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ type Position struct {

// directions defines the relative coordinates of each Direction.
var directions = map[Direction]Position{
N: Position{0, -1},
NE: Position{1, -1},
E: Position{1, 0},
SE: Position{1, 1},
S: Position{0, 1},
SW: Position{-1, 1},
W: Position{-1, 0},
NW: Position{-1, -1},
N: {0, -1},
NE: {1, -1},
E: {1, 0},
SE: {1, 1},
S: {0, 1},
SW: {-1, 1},
W: {-1, 0},
NW: {-1, -1},
}

// IsValidRules answers if the rules are consistent.
Expand Down

0 comments on commit 57e41b6

Please sign in to comment.