aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-11-15 23:21:44 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-11-15 23:54:11 +0530
commit1040552dbfdfc9f4f55402d796af5b270a172a54 (patch)
tree546da39c2f119fcbf23a519708b5e355ca85aa18
parent06ae72d7718d0ec2311ee583cd98c781273c0ecb (diff)
all: spotless
-rw-r--r--autofill-parser/src/main/java/mozilla/components/lib/publicsuffixlist/PublicSuffixList.kt5
-rw-r--r--crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt12
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<Unit> = 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