Skip to content

Commit

Permalink
Do not panic when env variables are absent
Browse files Browse the repository at this point in the history
  • Loading branch information
nhh committed Oct 1, 2024
1 parent 1c5c3f6 commit a5228a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ts/ts.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func __jsEnvGet(name string) interface{} {
}
}

panic("No env variable found")
return nil
}

// Can return number or string
Expand Down

0 comments on commit a5228a0

Please sign in to comment.