all: implement staticcheck suggestions

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-19 10:47:17 +02:00
parent 39fd161bea
commit 6ab43aba3e
5 changed files with 2 additions and 7 deletions
-1
View File
@@ -73,7 +73,6 @@ func clipLoader(ops *op.Ops, startAngle, endAngle, radius float64) {
// Use quadratic beziér curves to approximate a circle arc and
// minimize the error by capping the length of each curve segment.
const maxSegments = 20.
nsegments := math.Round(20 * math.Pi / (endAngle - startAngle))
θ := (endAngle - startAngle) / nsegments