refactor: Null safe matrix localizations

This commit is contained in:
Christian Pauly 2021-08-19 10:18:06 +02:00
parent f311ca62e0
commit 0cd73e846d
1 changed files with 0 additions and 3 deletions

View File

@ -1,4 +1,3 @@
// @dart=2.9
/* /*
* Famedly Matrix SDK * Famedly Matrix SDK
* Copyright (C) 2020, 2021 Famedly GmbH * Copyright (C) 2020, 2021 Famedly GmbH
@ -150,7 +149,6 @@ extension HistoryVisibilityDisplayString on HistoryVisibility {
case HistoryVisibility.worldReadable: case HistoryVisibility.worldReadable:
return i18n.visibleForEveryone; return i18n.visibleForEveryone;
} }
return null;
} }
} }
@ -162,7 +160,6 @@ extension GuestAccessDisplayString on GuestAccess {
case GuestAccess.forbidden: case GuestAccess.forbidden:
return i18n.guestsAreForbidden; return i18n.guestsAreForbidden;
} }
return null;
} }
} }