remove a redundant local variable

This commit is contained in:
tibbi 2017-10-25 18:58:24 +02:00
parent 5cce48e080
commit ec87f5066b
1 changed files with 2 additions and 2 deletions

View File

@ -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)