From 0eea1cb29763da6abe27e00cd3984ded53ffdfef Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 1 Apr 2025 14:37:24 -0700 Subject: [PATCH] libpod: don't capitalize error string This fixes the following warning: > libpod/networking_freebsd.go:148:19: ST1005: error strings should not be capitalized (staticcheck) > return "", nil, fmt.Errorf("Failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err) > ^ Signed-off-by: Kir Kolyshkin --- libpod/networking_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpod/networking_freebsd.go b/libpod/networking_freebsd.go index 29fc5bacf7..023b8584a3 100644 --- a/libpod/networking_freebsd.go +++ b/libpod/networking_freebsd.go @@ -145,7 +145,7 @@ func (r *Runtime) createNetNS(ctr *Container) (n string, q map[string]types.Stat jconf.Set("securelevel", -1) j, err := jail.Create(jconf) if err != nil { - return "", nil, fmt.Errorf("Failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err) + return "", nil, fmt.Errorf("failed to create vnet jail %s for container %s: %w", netns, ctr.ID(), err) } logrus.Debugf("Created vnet jail %s for container %s", netns, ctr.ID())