Make sure we fallthrough for the NES cases
This commit is contained in:
parent
c2e3c9f090
commit
5814ac95b8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue