Skip to content

Commit af899c0

Browse files
Himanshu-Kandwalnsh07
authored andcommitted
refactor: align AppDatabase code style with project conventions
1 parent 5ad7f53 commit af899c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/src/main/java/org/nsh07/pomodoro/data/AppDatabase.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import androidx.room.TypeConverters
1717
@Database(
1818
entities = [IntPreference::class, BooleanPreference::class, StringPreference::class, Stat::class],
1919
version = 2,
20-
autoMigrations = [AutoMigration(from = 1, to = 2)]
20+
autoMigrations = [
21+
AutoMigration(from = 1, to = 2)
22+
]
2123
)
2224
@TypeConverters(Converters::class)
2325
abstract class AppDatabase : RoomDatabase() {
@@ -33,7 +35,8 @@ abstract class AppDatabase : RoomDatabase() {
3335
fun getDatabase(context: Context): AppDatabase {
3436
return Instance ?: synchronized(this) {
3537
Instance ?: Room.databaseBuilder(context, AppDatabase::class.java, "app_database")
36-
.build().also { Instance = it }
38+
.build()
39+
.also { Instance = it }
3740
}
3841
}
3942
}

0 commit comments

Comments
 (0)