Skip to content

Commit

Permalink
Avoid error on missing LENS_BACKEND_URL (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
panuhorsmalahti committed Mar 14, 2023
1 parent 97c879c commit 0317c9c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ function getConfig() {
LENS_BACKEND_URL: process.env.LENS_BACKEND_URL
};

const missingConfiguration = Object.entries(config).find(([, value]) => !value);

if (missingConfiguration) {
throw new Error(`Environment variable ${missingConfiguration[0]} not set`);
}

return config;
}

Expand Down

0 comments on commit 0317c9c

Please sign in to comment.