From 760945b2c13937569ee8c34522e437463a8df6d6 Mon Sep 17 00:00:00 2001 From: Yuanlin Lin Date: Fri, 15 Sep 2023 12:24:25 +0800 Subject: [PATCH] fix(lib): Fix ineffectual assignment to err --- internal/nodejs/nextjs/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/nodejs/nextjs/main.go b/internal/nodejs/nextjs/main.go index 95f78ef6..355187af 100644 --- a/internal/nodejs/nextjs/main.go +++ b/internal/nodejs/nextjs/main.go @@ -135,5 +135,9 @@ func TransformServerless(image, workdir string) error { } err = os.WriteFile(path.Join(zeaburOutputDir, "config.json"), cfgBytes, 0644) + if err != nil { + return fmt.Errorf("write config: %w", err) + } + return nil }