summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaju Mathew <shaju@google.com>2023-12-15 00:28:05 +0000
committerShaju Mathew <shaju@google.com>2023-12-15 00:28:05 +0000
commit22b8e2eb4e8c78be7019948d0980695b6b94b80b (patch)
treeeaf9bac842de3692900472f9c8bf09ac9002f934
parent47c6f1c1c0d0b0e8badb3e33e2df707232fb20ca (diff)
downloadCalendar-22b8e2eb4e8c78be7019948d0980695b6b94b80b.tar.gz
Removing spurious check.
Bug: N/A Test: Treehugger presubmit. Change-Id: I68c5c0c8c5675eeeabd39cf95ac6bc70c47354e4
-rw-r--r--src/com/android/calendar/widget/CalendarAppWidgetService.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/calendar/widget/CalendarAppWidgetService.kt b/src/com/android/calendar/widget/CalendarAppWidgetService.kt
index 0d1018f3..26ed563c 100644
--- a/src/com/android/calendar/widget/CalendarAppWidgetService.kt
+++ b/src/com/android/calendar/widget/CalendarAppWidgetService.kt
@@ -504,9 +504,7 @@ class CalendarAppWidgetService : RemoteViewsService() {
if (matrixCursor != null) {
matrixCursor.close()
}
- if (cursor != null) {
- cursor.close()
- }
+ cursor.close()
}
// Schedule an alarm to wake ourselves up for the next update.
@@ -662,4 +660,4 @@ class CalendarAppWidgetService : RemoteViewsService() {
}
}
}
-} \ No newline at end of file
+}