Skip to content

Commit 5ae9aa4

Browse files
authored
Removed homePath check
The check is unnecessary because if a new value is equals to exists value, it should not make any changes to Hive - should not crash the data. If it does it should be something else that causes the crash.
1 parent 88fc143 commit 5ae9aa4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

hive/lib/src/hive_impl.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ class HiveImpl extends TypeRegistryImpl implements HiveInterface {
5555

5656
@override
5757
void init(String path) {
58-
if (homePath == path) {
59-
print(
60-
'Hive instance has already been initialized. Please call Hive.init '
61-
'only once if possible.',
62-
);
63-
}
6458
homePath = path;
6559
}
6660

0 commit comments

Comments
 (0)