From cb1839ea3254b6d83aac77a91010db4f8a9a2614 Mon Sep 17 00:00:00 2001 From: Julius Linus Date: Mon, 18 Dec 2023 11:26:51 -0600 Subject: [PATCH] Codacity spread operator Signed-off-by: rapterjet2004 --- .../nextcloud/talk/migrations/MigrationsTest.kt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/androidTest/java/com/nextcloud/talk/migrations/MigrationsTest.kt b/app/src/androidTest/java/com/nextcloud/talk/migrations/MigrationsTest.kt index 0fe32b189a2..c2b38f1f658 100644 --- a/app/src/androidTest/java/com/nextcloud/talk/migrations/MigrationsTest.kt +++ b/app/src/androidTest/java/com/nextcloud/talk/migrations/MigrationsTest.kt @@ -53,18 +53,19 @@ class MigrationsTest { InstrumentationRegistry.getInstrumentation().targetContext, TalkDatabase::class.java, TEST_DB - ).addMigrations(*migrations).build().apply { + ).addMigrations( + *arrayOf( + Migrations.MIGRATION_6_8, + Migrations.MIGRATION_7_8, + Migrations.MIGRATION_8_9, + Migrations.MIGRATION_9_10 + ) + ).build().apply { openHelper.writableDatabase.close() } } companion object { private const val TEST_DB = "migration-test" - private val migrations = arrayOf( - Migrations.MIGRATION_6_8, - Migrations.MIGRATION_7_8, - Migrations.MIGRATION_8_9, - Migrations.MIGRATION_9_10 - ) } }