remove a redundant local variable
This commit is contained in:
parent
5cce48e080
commit
ec87f5066b
|
@ -791,8 +791,8 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||||
}
|
}
|
||||||
|
|
||||||
val events = ArrayList<Event>()
|
val events = ArrayList<Event>()
|
||||||
cursor.use { cursor ->
|
cursor?.use {
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
if (cursor.moveToFirst()) {
|
||||||
do {
|
do {
|
||||||
val id = cursor.getIntValue(COL_ID)
|
val id = cursor.getIntValue(COL_ID)
|
||||||
val startTS = cursor.getIntValue(COL_START_TS)
|
val startTS = cursor.getIntValue(COL_START_TS)
|
||||||
|
|
Loading…
Reference in New Issue