diff --git a/index.js b/index.js index 3032e9fd9..913eda055 100644 --- a/index.js +++ b/index.js @@ -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];