From 572e8f370b54c1e8d42615e57dba0c1da323f3f7 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Thu, 18 Jul 2024 21:40:00 +0200 Subject: [PATCH] unused casting --- hermes/cmd/flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes/cmd/flag.go b/hermes/cmd/flag.go index cbad9e80..ce057de2 100644 --- a/hermes/cmd/flag.go +++ b/hermes/cmd/flag.go @@ -136,7 +136,7 @@ func exportToFlagValue(f *plugin.Flag) (interface{}, error) { case plugin.FlagTypeInt: v, err := strconv.Atoi(flagValue(f)) if err != nil { - return int(0), err + return 0, err } return v, nil case plugin.FlagTypeUint: