From f7c770df7af71b1a55e7e988762fa04817279d54 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 8 Oct 2021 18:36:04 +0200 Subject: [PATCH] removing an unneeded apply, as it contains only 1 line --- .../simplemobiletools/notes/pro/databases/NotesDatabase.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt index 418a321e..eb66529b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt @@ -81,9 +81,7 @@ abstract class NotesDatabase : RoomDatabase() { private val MIGRATION_3_4 = object : Migration(3, 4) { override fun migrate(database: SupportSQLiteDatabase) { - database.apply { - execSQL("ALTER TABLE widgets ADD COLUMN widget_show_title INTEGER NOT NULL DEFAULT 0") - } + database.execSQL("ALTER TABLE widgets ADD COLUMN widget_show_title INTEGER NOT NULL DEFAULT 0") } } }