mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
ignore pointless throw [skip ci]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user