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