mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-11-30 23:16:04 +07:00
nerdctl: fix if-return lint
This commit is contained in:
@@ -373,10 +373,7 @@ func generatePortMappings(clusterIPFamily config.ClusterIPFamily, portMappings .
|
||||
}
|
||||
|
||||
func createContainer(name string, args []string, binaryName string) error {
|
||||
if err := exec.Command(binaryName, append([]string{"run", "--name", name}, args...)...).Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return exec.Command(binaryName, append([]string{"run", "--name", name}, args...)...).Run()
|
||||
}
|
||||
|
||||
func createContainerWithWaitUntilSystemdReachesMultiUserSystem(name string, args []string, binaryName string) error {
|
||||
|
||||
Reference in New Issue
Block a user