mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
lint: Fix virtcontainers unused errors
Remove unused variables and functions identified by the `varcheck` and `unused` linters. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
|
||||
@@ -860,28 +859,6 @@ var statusContainerCommand = cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
func startCCShim(process *vc.Process, shimPath, url string) error {
|
||||
if process.Token == "" {
|
||||
return fmt.Errorf("Token cannot be empty")
|
||||
}
|
||||
|
||||
if url == "" {
|
||||
return fmt.Errorf("URL cannot be empty")
|
||||
}
|
||||
|
||||
if shimPath == "" {
|
||||
return fmt.Errorf("Shim path cannot be empty")
|
||||
}
|
||||
|
||||
cmd := exec.Command(shimPath, "-t", process.Token, "-u", url)
|
||||
cmd.Env = os.Environ()
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
return cmd.Run()
|
||||
}
|
||||
|
||||
func main() {
|
||||
cli.VersionFlag = cli.BoolFlag{
|
||||
Name: "version",
|
||||
|
||||
Reference in New Issue
Block a user