From d3adfdeec7d5c9eee5a6978df3bee62a866c958d Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 20 Jul 2026 18:14:45 +0200 Subject: [PATCH] minor style fixes to make the backport apply cleanly To make the cherry-pick apply cleanly do some of the style changes we did on main first. Signed-off-by: Paul Holzinger --- pkg/domain/infra/abi/quadlet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/domain/infra/abi/quadlet.go b/pkg/domain/infra/abi/quadlet.go index f679aeb9d2..8c2c8a705a 100644 --- a/pkg/domain/infra/abi/quadlet.go +++ b/pkg/domain/infra/abi/quadlet.go @@ -335,13 +335,13 @@ func (ic *ContainerEngine) installQuadlet(_ context.Context, path, destName, ins return "", fmt.Errorf("%q is not a supported Quadlet file type", filepath.Ext(finalPath)) } - var osFlags = os.O_CREATE | os.O_WRONLY + osFlags := os.O_CREATE | os.O_WRONLY if !replace { osFlags |= os.O_EXCL } - file, err := os.OpenFile(finalPath, osFlags, 0644) + file, err := os.OpenFile(finalPath, osFlags, 0o644) if err != nil { if errors.Is(err, fs.ErrExist) && !replace { return "", fmt.Errorf("a Quadlet with name %s already exists, refusing to overwrite", filepath.Base(finalPath))