Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGobbo committed Nov 18, 2024
1 parent c4d1cd1 commit 7f5f501
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions figex-core/src/main/kotlin/com/iodigital/figex/IconExports.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,14 @@ internal suspend fun performIconExport(
}.map { exportSet ->
async {
val start = System.currentTimeMillis()
verbose(
tag = tag,
message = " Downloading: ${exportSet.component.fullName}@${exportSet.scale.scale}x"
)
verbose(tag = tag, message = " Downloading: ${exportSet.component.fullName}@${exportSet.scale.scale}x")

val outFile = destinationRoot.makeChild(exportSet.name)

downloadImage(
export = export, exportSet = exportSet, outFile = outFile, exporter = exporter
)
generateCompanionFile(
export = export, exportSet = exportSet, outFile = outFile, root = root
)

debug(
tag = tag,
message = " Downloaded: ${exportSet.component.fullName}@${exportSet.scale.scale}x => ${outFile.absolutePath} (${System.currentTimeMillis() - start}ms)"
)
downloadImage(export = export, exportSet = exportSet, outFile = outFile, exporter = exporter)
generateCompanionFile(export = export, exportSet = exportSet, outFile = outFile, root = root)

debug(tag = tag, message = " Downloaded: ${exportSet.component.fullName}@${exportSet.scale.scale}x => ${outFile.absolutePath} (${System.currentTimeMillis() - start}ms)")
}
}.forEach { deferred ->
deferred.await()
Expand Down

0 comments on commit 7f5f501

Please sign in to comment.