Skip to content

Commit

Permalink
feat: update env check
Browse files Browse the repository at this point in the history
  • Loading branch information
kf-liu committed Oct 23, 2022
1 parent a0abac8 commit 40809dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const {
} = process.env;

try {
if (!GH_TOKEN) {
if (!githubToken) {
throw new Error("GH_TOKEN is not provided.");
}
if (!GIST_ID) {
if (!gistId) {
throw new Error("GIST_ID is not provided.");
}
if (!USERNAME) {
throw new Error("USERNAME is not provided.");
if (!records) {
throw new Error("RECORDS is not provided.");
}
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 40809dc

Please sign in to comment.