engine, lang: Misc fixes for golang lint

This commit is contained in:
James Shubin
2021-08-09 16:55:31 -04:00
parent 3718372288
commit c555478b54
5 changed files with 9 additions and 14 deletions

View File

@@ -128,10 +128,7 @@ func (obj *NspawnRes) Init(init *engine.Init) error {
}
obj.svc = svc
// TODO: we could build a new init that adds a prefix to the logger...
if err := obj.svc.Init(init); err != nil {
return err
}
return nil
return obj.svc.Init(init)
}
// Close is run by the engine to clean up after the resource is done.