From 22b8e2eb4e8c78be7019948d0980695b6b94b80b Mon Sep 17 00:00:00 2001 From: Shaju Mathew Date: Fri, 15 Dec 2023 00:28:05 +0000 Subject: Removing spurious check. Bug: N/A Test: Treehugger presubmit. Change-Id: I68c5c0c8c5675eeeabd39cf95ac6bc70c47354e4 --- src/com/android/calendar/widget/CalendarAppWidgetService.kt | 6 ++---- 1 file 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 +} -- cgit v1.2.3