mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-20 07:04:14 +09:00
Clean up some messaging
This commit is contained in:
+6
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user