mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
all: implement staticcheck suggestions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user