Make sure we fallthrough for the NES cases

This commit is contained in:
Marc Di Luzio 2020-07-19 11:29:28 +01:00
parent c2e3c9f090
commit 5814ac95b8

View file

@ -85,8 +85,11 @@ func (d Bearing) Vector() Vector {
func (d Bearing) IsCardinal() bool { func (d Bearing) IsCardinal() bool {
switch d { switch d {
case North: case North:
fallthrough
case East: case East:
fallthrough
case South: case South:
fallthrough
case West: case West:
return true return true
} }