Only add timetable to cache on success

This commit is contained in:
Hannes Braun 2021-10-16 01:08:52 +02:00
parent 235cc7f773
commit 3d4e2f363d
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 }
}
}