Skip to content

Commit

Permalink
day 39 - nolint WriteString because it always returns nil for error
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Oct 3, 2018
1 parent ac80fc5 commit b63498d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions day39/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ func (gol *GameOfLife) String() string {
for y := gol.maxY - 1; y > gol.minY; y-- {
for x := gol.minX + 1; x < gol.maxX; x++ {
if _, alive := gol.living[Coord{x, y}]; alive {
sb.WriteRune('*')
sb.WriteRune('*') // nolint: gosec
} else {
sb.WriteRune('.')
sb.WriteRune('.') // nolint: gosec
}
}
sb.WriteRune('\n')
sb.WriteRune('\n') // nolint: gosec
}
return sb.String()
}
Expand Down

0 comments on commit b63498d

Please sign in to comment.