lint: enforce unawaited_futures, prefer_final_locals, etc.

This commit is contained in:
edde746
2026-04-25 12:27:28 +02:00
parent c2cd2dea37
commit feba5b6f74
52 changed files with 1072 additions and 1978 deletions
+4 -4
View File
@@ -112,7 +112,7 @@ class DiscordRPCService {
if (_isEnabled && _isConnected) {
// Upload thumbnail in background, don't block playback
_uploadThumbnailAndUpdatePresence();
unawaited(_uploadThumbnailAndUpdatePresence());
}
}
@@ -183,7 +183,7 @@ class DiscordRPCService {
/// Clear the presence
Future<void> clearPresence() async {
try {
_rpc?.clearPresence();
unawaited(_rpc?.clearPresence());
} catch (e) {
appLogger.d('Failed to clear Discord presence', error: e);
}
@@ -237,7 +237,7 @@ class DiscordRPCService {
_disconnectedSubscription = null;
_errorSubscription = null;
try {
_rpc?.dispose();
unawaited(_rpc?.dispose());
} catch (e) {
appLogger.d('DiscordRPC: dispose ignored', error: e);
}
@@ -258,7 +258,7 @@ class DiscordRPCService {
_errorSubscription = null;
try {
_rpc?.dispose();
unawaited(_rpc?.dispose());
} catch (e) {
appLogger.d('Error disposing Discord RPC', error: e);
}