about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-02-05 21:16:31 +0100
committerEmile <hanemile@protonmail.com>2019-02-05 21:16:31 +0100
commit560f64d9a6a0de578f37b62295816ba39c54ba2b (patch)
tree96c842f380d134f70635249ed963c80763982bf9
parent0432eb77d03343425c7d35e15d43b459db18fbe5 (diff)
removed an unnecessary return values
-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 {