Fix golint error

golint has figured out an optimization that is blocking other pull requests.
This fixes the golint issue.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-03-15 16:30:39 -04:00
parent fdc7f5a77a
commit bf6c4141c1

View file

@ -69,10 +69,8 @@ func RunUnderSystemdScope(pid int, slice string, unitName string) error {
properties = append(properties, newProp("PIDs", []uint32{uint32(pid)}))
properties = append(properties, newProp("Delegate", true))
properties = append(properties, newProp("DefaultDependencies", false))
if _, err := conn.StartTransientUnit(unitName, "replace", properties, nil); err != nil {
return err
}
return nil
_, err = conn.StartTransientUnit(unitName, "replace", properties, nil)
return err
}
func newProp(name string, units interface{}) systemdDbus.Property {