Skip to content
Snippets Groups Projects
Commit f944a704 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

style: fix linter error

parent aa7a9fbb
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ var FUVERSION = "dev" ...@@ -12,7 +12,7 @@ var FUVERSION = "dev"
type Updater struct{} type Updater struct{}
func (u *Updater) Init(m map[string]string) error { func (u *Updater) Init(_ map[string]string) error {
return nil return nil
} }
...@@ -47,10 +47,7 @@ func updateJSONFile(fName, newVersion string) error { ...@@ -47,10 +47,7 @@ func updateJSONFile(fName, newVersion string) error {
} }
enc := json.NewEncoder(file) enc := json.NewEncoder(file)
enc.SetIndent("", " ") enc.SetIndent("", " ")
if err := enc.Encode(data); err != nil { return enc.Encode(data)
return err
}
return nil
} }
func (u *Updater) Apply(file, newVersion string) error { func (u *Updater) Apply(file, newVersion string) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment