From f0c1952dfe47ce347cf1ccb1b80f54fafd102141 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Thu, 6 Feb 2025 08:51:38 +0100 Subject: [PATCH] ci(lint): fix missing error handling --- pkg/modules/api/context.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/modules/api/context.go b/pkg/modules/api/context.go index 7af15d0f..37c3a370 100644 --- a/pkg/modules/api/context.go +++ b/pkg/modules/api/context.go @@ -477,6 +477,9 @@ func (ctx *Context) BuildOutputFile() (string, error) { } return f }()) + if err != nil { + return "", fmt.Errorf("create files info: %w", err) + } archivePath := ctx.GeneratePath(".zip") out, err := os.Create(archivePath)