ignore pointless throw [skip ci]

This commit is contained in:
Omar
2026-09-22 00:41:54 +03:00
parent 88498e8495
commit c96359321f
+3 -1
View File
@@ -441,7 +441,9 @@ class Libwallet {
}
Future<String> syncStatus(String walletName) async {
if (_closed) throw StateError('Closed');
if (_closed) {
return "closed";
}
final completer = Completer<Object?>.sync();
final id = _idCounter++;
_activeRequests[id] = completer;