From f944a704dd854838001da321ca44350a26eb3baa Mon Sep 17 00:00:00 2001 From: Christoph Witzko <github@christophwitzko.com> Date: Fri, 6 Oct 2023 12:17:24 +0200 Subject: [PATCH] style: fix linter error --- pkg/updater/npm.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/updater/npm.go b/pkg/updater/npm.go index 5f0ed75..8a0919e 100644 --- a/pkg/updater/npm.go +++ b/pkg/updater/npm.go @@ -12,7 +12,7 @@ var FUVERSION = "dev" type Updater struct{} -func (u *Updater) Init(m map[string]string) error { +func (u *Updater) Init(_ map[string]string) error { return nil } @@ -47,10 +47,7 @@ func updateJSONFile(fName, newVersion string) error { } enc := json.NewEncoder(file) enc.SetIndent("", " ") - if err := enc.Encode(data); err != nil { - return err - } - return nil + return enc.Encode(data) } func (u *Updater) Apply(file, newVersion string) error { -- GitLab