refactor: Add more stricter lints

This commit is contained in:
Christian Kußowski 2026-02-20 14:03:46 +01:00
commit 5283d0fcc8
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
15 changed files with 66 additions and 60 deletions

View file

@ -234,9 +234,9 @@ class EmotesSettingsController extends State<EmotesSettings> {
?.tryGetMap<String, Object?>(stateKey ?? '') !=
null;
bool get readonly => room == null
? false
: room?.canChangeStateEvent('im.ponies.room_emotes') == false;
bool get readonly =>
room != null &&
room?.canChangeStateEvent('im.ponies.room_emotes') == false;
void resetAction() {
setState(() {