Skip to content

Commit

Permalink
fix: Allow child command to be explicitly empty. (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm authored Aug 26, 2024
1 parent e90f709 commit 10c066b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func New(opts ...ServerOption) (*NitricServer, error) {
return nil, fmt.Errorf("invalid WORKER_TIMEOUT: %w", err)
}

if m.ChildCommand == nil || len(m.ChildCommand) == 0 {
if m.ChildCommand == nil {
if len(os.Args) > 1 {
m.ChildCommand = os.Args[1:]
}
Expand Down

0 comments on commit 10c066b

Please sign in to comment.