From 1040552dbfdfc9f4f55402d796af5b270a172a54 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 15 Nov 2021 23:21:44 +0530 Subject: all: spotless --- .../components/lib/publicsuffixlist/PublicSuffixList.kt | 5 ++--- .../kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt b/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt index cdf9d8de..1051125f 100644 --- a/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt +++ b/autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt @@ -33,9 +33,8 @@ internal class PublicSuffixList( private val scope: CoroutineScope = CoroutineScope(dispatcher) ) { - private val data: PublicSuffixListData by lazy(LazyThreadSafetyMode.PUBLICATION) { - PublicSuffixListLoader.load(context) - } + private val data: PublicSuffixListData by + lazy(LazyThreadSafetyMode.PUBLICATION) { PublicSuffixListLoader.load(context) } /** Prefetch the public suffix list from disk so that it is available in memory. */ fun prefetchAsync(): Deferred = scope.async { data.run {} } diff --git a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt index 87e1d567..2bd9b49e 100644 --- a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt +++ b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt @@ -17,13 +17,13 @@ class PGPKeyManagerTest { @get:Rule val temporaryFolder: TemporaryFolder = TemporaryFolder() private val filesDir by lazy(LazyThreadSafetyMode.NONE) { temporaryFolder.root } - private val keysDir by lazy(LazyThreadSafetyMode.NONE) { - File(filesDir, PGPKeyManager.KEY_DIR_NAME) - } + private val keysDir by + lazy(LazyThreadSafetyMode.NONE) { File(filesDir, PGPKeyManager.KEY_DIR_NAME) } private val testCoroutineDispatcher = TestCoroutineDispatcher() - private val keyManager by lazy(LazyThreadSafetyMode.NONE) { - PGPKeyManager(filesDir.absolutePath, testCoroutineDispatcher) - } + private val keyManager by + lazy(LazyThreadSafetyMode.NONE) { + PGPKeyManager(filesDir.absolutePath, testCoroutineDispatcher) + } private val key = PGPKeyManager.makeKey(TestUtils.getArmoredPrivateKey()) @Test -- cgit v1.2.3