Only add timetable to cache on success

This commit is contained in:
Hannes Braun 2021-10-16 01:08:52 +02:00
parent 8e3af696e0
commit ca8efdaa85
Signed by: hannesbraun
GPG Key ID: 7B6557E1DFD685BE
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class CacheController {
weekNumberYear ?: 0,
timetableLink
), timetable ?: TimetableWeek()
).also { timetableList[key] = it }
).also { if (timetable != null) timetableList[key] = it }
}
}