Get rid of named return and obsolete build tag

This commit is contained in:
Benedikt Kulmann
2020-10-05 11:53:03 +02:00
parent 14bd4c83f6
commit 675906ca25
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
// +build !simple
package command
import (

View File

@@ -122,13 +122,14 @@ OUT:
}
// RunService sends a Service.Start command with the given service name to pman
func RunService(client *rpc.Client, service string) (reply int) {
func RunService(client *rpc.Client, service string) int {
args := process.NewProcEntry(service, os.Environ(), []string{service}...)
var reply int
if err := client.Call("Service.Start", args, &reply); err != nil {
golog.Fatal(err)
}
return
return reply
}
// AddMicroPlatform adds the micro subcommands to the cli app