Skip to content

Commit

Permalink
fix(lib): Fix ineffectual assignment to err
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Sep 15, 2023
1 parent eb89133 commit 760945b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/nodejs/nextjs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 760945b

Please sign in to comment.