From 5814ac95b87ed625baa1d7bf93735b04a2057be3 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 19 Jul 2020 11:29:28 +0100 Subject: [PATCH] Make sure we fallthrough for the NES cases --- pkg/maths/bearing.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/maths/bearing.go b/pkg/maths/bearing.go index de4014d..e72148b 100644 --- a/pkg/maths/bearing.go +++ b/pkg/maths/bearing.go @@ -85,8 +85,11 @@ func (d Bearing) Vector() Vector { func (d Bearing) IsCardinal() bool { switch d { case North: + fallthrough case East: + fallthrough case South: + fallthrough case West: return true }