examples: fix imagegen first step printing (#273)

This commit is contained in:
Jeffrey Morgan 2026-01-23 11:44:47 -08:00 committed by GitHub
parent ef411aa67e
commit f23d7eeb6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ async function main() {
console.log('\nImage saved to output.png')
} else if (part.total) {
// Progress update
process.stdout.write(`\rProgress: ${part.completed}/${part.total}`)
process.stdout.write(`\rProgress: ${part.completed ?? 0}/${part.total}`)
}
}
}