Clean up some messaging

This commit is contained in:
Will Boyd
2020-01-14 10:26:50 -05:00
parent c428cd574c
commit 551e6823f4
4 changed files with 26 additions and 7 deletions
+6 -2
View File
@@ -83,8 +83,12 @@ async function writeImageFilesPromise(posts, config) {
});
});
console.log('\nSaving images...');
await processPayloadsPromise(payloads, loadImageFilePromise);
if (payloads.length > 0) {
console.log('\nDownloading and saving images...');
await processPayloadsPromise(payloads, loadImageFilePromise);
} else {
console.log('\nNo images to download and save...');
}
}
async function loadImageFilePromise(imageUrl) {