Skip to content

Commit f7c770d

Browse files
committed
removing an unneeded apply, as it contains only 1 line
1 parent 0b1af74 commit f7c770d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ abstract class NotesDatabase : RoomDatabase() {
8181

8282
private val MIGRATION_3_4 = object : Migration(3, 4) {
8383
override fun migrate(database: SupportSQLiteDatabase) {
84-
database.apply {
85-
execSQL("ALTER TABLE widgets ADD COLUMN widget_show_title INTEGER NOT NULL DEFAULT 0")
86-
}
84+
database.execSQL("ALTER TABLE widgets ADD COLUMN widget_show_title INTEGER NOT NULL DEFAULT 0")
8785
}
8886
}
8987
}

0 commit comments

Comments
 (0)