diff --git a/app/src/main/java/com/google/samples/apps/nowinandroid/util/ImageLoaderAsyncFactory.kt b/app/src/main/java/com/google/samples/apps/nowinandroid/util/ImageLoaderAsyncFactory.kt index b746ec974..d8f928de5 100644 --- a/app/src/main/java/com/google/samples/apps/nowinandroid/util/ImageLoaderAsyncFactory.kt +++ b/app/src/main/java/com/google/samples/apps/nowinandroid/util/ImageLoaderAsyncFactory.kt @@ -54,7 +54,10 @@ class ImageLoaderAsyncFactory @Inject constructor( */ override fun newImageLoader() = trace("NiaImageLoader.runBlocking") { - if (asyncNewImageLoader.isCompleted) asyncNewImageLoader.getCompleted() - else runBlocking { asyncNewImageLoader.await() } + if (asyncNewImageLoader.isCompleted) { + asyncNewImageLoader.getCompleted() + } else { + runBlocking { asyncNewImageLoader.await() } + } } }