daemon: fix perfsprint linting

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn committed 2026-07-06 15:36:20 +02:00
1 parent 8f0f5bc0ca
commit 6a1c34d6fa
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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)
}
}
}