Browse Source

rm sprintf

Matthew R. Kasun 3 years ago
parent
commit
62a09afa8f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      netclient/daemon/freebsd.go

+ 1 - 2
netclient/daemon/freebsd.go

@@ -1,7 +1,6 @@
 package daemon
 
 import (
-	"fmt"
 	"log"
 	"os"
 	"path/filepath"
@@ -104,7 +103,7 @@ netclient_args="daemon"`
 }
 
 func FreebsdDaemon(command string) {
-	out, err := ncutils.RunCmd(fmt.Sprintf("service netclient %s", command), true)
+	out, err := ncutils.RunCmd("service netclient "+command, true)
 	ncutils.Log("output from RunCmd " + out)
 	ncutils.Log("error from RunCmd " + err.Error())
 }