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

style: fix linter error

parent aa7a9fbb
Branches
Tags v1.9.0
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment