mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: remove unused variables (#7968)
This commit is contained in:
@@ -64,7 +64,7 @@ class Storage<T extends object> {
|
||||
return this._options.config;
|
||||
}
|
||||
return cfg;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return this._cfg;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -521,7 +521,7 @@ function isConstructor(cls: any) {
|
||||
try {
|
||||
Reflect.construct(function () {}, [], cls);
|
||||
return true;
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user