about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--star.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/star.go b/star.go
index a35f1de..8456144 100644
--- a/star.go
+++ b/star.go
@@ -98,12 +98,11 @@ func (star Star2D) getRelativePosition(boundary BoundingBox) string {
 			return "NE"
 		}
 		return "SE"
-	} else {
-		if star.posY(boundary) == true {
-			return "NW"
-		}
-		return "SW"
 	}
+	if star.posY(boundary) == true {
+		return "NW"
+	}
+	return "SW"
 }
 
 func (star Star2D) getRelativePositionInt(boundary BoundingBox) int {