Skip to content

Commit ad69241

Browse files
committedJun 17, 2024
Fix empty JSON detection
1 parent 890a1e3 commit ad69241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ try
3838
});
3939
}
4040

41-
if(outputJson.length > 0)
41+
if(Object.keys(outputJson).length !== 0)
4242
{
4343
fs.writeFileSync(
4444
outFile,

0 commit comments

Comments
 (0)