chore: unnecessary use of fmt.Sprintf (#211)

This commit is contained in:
guangwu 2023-07-10 23:53:10 +08:00 committed by GitHub
parent 54fc699377
commit e781e0cd22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ func (vr *vectorRenderer) ArcTo(cx, cy int, rx, ry, startAngle, delta float64) {
// Close closes a shape.
func (vr *vectorRenderer) Close() {
vr.p = append(vr.p, fmt.Sprintf("Z"))
vr.p = append(vr.p, "Z")
}
// Stroke draws the path with no fill.