shiny/materialdesign/icons: use a more straightforward return value Change-Id: I74d9c3f4047774a0fe503a37dc60c398cdd6b42f Reviewed-on: https://go-review.googlesource.com/c/exp/+/653197 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/shiny/materialdesign/icons/gen.go b/shiny/materialdesign/icons/gen.go index 150318b..85c7528 100644 --- a/shiny/materialdesign/icons/gen.go +++ b/shiny/materialdesign/icons/gen.go
@@ -570,7 +570,7 @@ if err != nil { return 0, fmt.Errorf("could not parse %q as a float32: %v", s, err) } - return float32(f), err + return float32(f), nil } func normalize(args *[6]float32, n int, op byte, size float32, offset f32.Vec2, relative bool) {