Skip to content

Commit

Permalink
fix: must get env function condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Sep 2, 2022
1 parent 9b8bae8 commit 342ea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cron/src/jobs/goodbits.js
Expand Up @@ -135,7 +135,7 @@ async function getWranglerToml(url) {
* @returns {string}
*/
function mustGetEnv(key) {
if (process.env[key]) {
if (!process.env[key]) {
throw new Error(`missing environment variable: ${key}`)
}
// @ts-ignore validation of undefined before not accepted by ts compiler
Expand Down

0 comments on commit 342ea01

Please sign in to comment.