Skip to content

Commit 4e5fa34

Browse files
committed
fix: remove hasValue check
1 parent 9398d60 commit 4e5fa34

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

lib/core/seed/data/datasources/seed_datasource.dart

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,6 @@ class SeedDatasource {
3939
return seed;
4040
}
4141

42-
if (attempt == maxRetries - 1) {
43-
final exists = await _secureStorage.hasValue(key);
44-
if (!exists) {
45-
throw SeedNotFoundException(
46-
'Seed not found for fingerprint: $fingerprint',
47-
);
48-
}
49-
}
50-
5142
if (attempt < maxRetries - 1) {
5243
final delay = Duration(
5344
milliseconds: initialDelay.inMilliseconds * (1 << attempt),
@@ -64,17 +55,6 @@ class SeedDatasource {
6455
rethrow;
6556
}
6657

67-
if (attempt == maxRetries - 1) {
68-
try {
69-
final exists = await _secureStorage.hasValue(key);
70-
if (!exists) {
71-
throw SeedNotFoundException(
72-
'Seed not found for fingerprint: $fingerprint',
73-
);
74-
}
75-
} catch (_) {}
76-
}
77-
7858
if (attempt < maxRetries - 1) {
7959
final delay = Duration(
8060
milliseconds: initialDelay.inMilliseconds * (1 << attempt),

0 commit comments

Comments
 (0)