@@ -319,9 +319,7 @@ class Downloader(private val config: DownloaderConfiguration) {
319319
320320 verifyOutputDirectory(outputDirectory)
321321
322- logger.info {
323- " Trying to download source artifact from ${sourceArtifact.url} ..."
324- }
322+ logger.info { " Trying to download source artifact from ${sourceArtifact.url} ..." }
325323
326324 // Some (Linux) file URIs do not start with "file://" but look like "file:/opt/android-sdk-linux".
327325 val isLocalFileUrl = sourceArtifact.url.startsWith(" file:/" )
@@ -352,9 +350,7 @@ class Downloader(private val config: DownloaderConfiguration) {
352350
353351 if (sourceArtifact.hash.algorithm != HashAlgorithm .NONE ) {
354352 if (sourceArtifact.hash.algorithm == HashAlgorithm .UNKNOWN ) {
355- logger.warn {
356- " Cannot verify source artifact with ${sourceArtifact.hash} , skipping verification."
357- }
353+ logger.warn { " Cannot verify source artifact with ${sourceArtifact.hash} , skipping verification." }
358354 } else if (! sourceArtifact.hash.verify(sourceArchive)) {
359355 tempDir?.safeDeleteRecursively()
360356 throw DownloadException (" Source artifact does not match expected ${sourceArtifact.hash} ." )
@@ -393,15 +389,11 @@ class Downloader(private val config: DownloaderConfiguration) {
393389
394390 if (! isSourceCodeFile) throw DownloadException (" The artifact does not seem to be a source code file" , e)
395391
396- logger.info {
397- " Treating '${sourceArchive.absolutePath} ' as a source code file."
398- }
392+ logger.info { " Treating '${sourceArchive.absolutePath} ' as a source code file." }
399393 }
400394 }
401395
402- logger.info {
403- " Successfully unpacked ${sourceArtifact.url} to '${outputDirectory.absolutePath} '..."
404- }
396+ logger.info { " Successfully unpacked ${sourceArtifact.url} to '${outputDirectory.absolutePath} '..." }
405397
406398 tempDir?.safeDeleteRecursively()
407399 return ArtifactProvenance (sourceArtifact)
0 commit comments