Skip to content

Commit

Permalink
catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p1 committed Jul 23, 2023
1 parent 09c3816 commit 84a59b2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ const dlImg = (async (githubToken, filePath, username) => {
await exec('git', ['push']);
});

try {
dlImg(GITHUB_TOKEN, FILEPATH, THM_USERNAME);
} catch (error) {
console.log("nothing to commit");
}
dlImg(GITHUB_TOKEN, FILEPATH, THM_USERNAME).catch((error) => {
console.log('nothing to commit');
});

0 comments on commit 84a59b2

Please sign in to comment.