Skip to content

Commit

Permalink
fixing unnecessary error
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-bsnake committed Aug 25, 2022
1 parent 7023bec commit 04ab985
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions maps/hazard_pits.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (m HazardPitsMap) Meta() Metadata {
}
}

func (m HazardPitsMap) AddHazardPits(board *rules.BoardState, settings rules.Settings, editor Editor) error {
func (m HazardPitsMap) AddHazardPits(board *rules.BoardState, settings rules.Settings, editor Editor) {
for x := 0; x < board.Width; x++ {
for y := 0; y < board.Height; y++ {
if x%2 == 1 && y%2 == 1 {
Expand All @@ -44,7 +44,6 @@ func (m HazardPitsMap) AddHazardPits(board *rules.BoardState, settings rules.Set
}
}
}
return nil
}

func (m HazardPitsMap) SetupBoard(initialBoardState *rules.BoardState, settings rules.Settings, editor Editor) error {
Expand Down

0 comments on commit 04ab985

Please sign in to comment.