daemon: fix perfsprint linting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
3 files changed
+3
-4
No files matched your search
@@ -502,7 +502,7 @@ func verifyPlatformContainerResources(resources *containertypes.Resources, sysIn
|
||||
return warnings, errors.New("CPU cfs quota can not be less than 1ms (i.e. 1000)")
|
||||
}
|
||||
if resources.CPUPercent > 0 {
|
||||
warnings = append(warnings, fmt.Sprintf("%s does not support CPU percent. Percent discarded.", runtime.GOOS))
|
||||
warnings = append(warnings, runtime.GOOS+" does not support CPU percent. Percent discarded.")
|
||||
resources.CPUPercent = 0
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
@@ -90,7 +89,7 @@ func mirrorsToRegistryHosts(mirrors []string, dHost docker.RegistryHost) []docke
|
||||
|
||||
u, err := url.Parse(mirror)
|
||||
if err != nil || u.Host == "" {
|
||||
u, err = url.Parse(fmt.Sprintf("dummy://%s", mirror))
|
||||
u, err = url.Parse("dummy://" + mirror)
|
||||
}
|
||||
if err == nil && u.Host != "" {
|
||||
h.Host = u.Host
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ func (daemon *Daemon) removeMountPoints(container *container.Container, rm bool)
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
rmErrors = append(rmErrors, fmt.Sprintf("layer not found for image %s", m.Name))
|
||||
rmErrors = append(rmErrors, "layer not found for image "+m.Name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user