Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
fix: Handle case where user has no Wakatime stats (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
antct committed Feb 6, 2020
1 parent b80ddd3 commit 4fa6a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async function updateGist(stats) {
lines.push(line.join(" "));
}

if (lines.length == 0) return;

try {
// Get original filename to update that same file
const filename = Object.keys(gist.data.files)[0];
Expand Down

0 comments on commit 4fa6a78

Please sign in to comment.