mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Remove @ts-expect-error suppressions
This commit is contained in:
parent
932ea6b8f9
commit
14c4c4997e
20 changed files with 62 additions and 79 deletions
|
|
@ -71,8 +71,11 @@ async function getMalwareDatabase() {
|
|||
}
|
||||
|
||||
const { malwareDatabase, version } = await fetchMalwareDatabase();
|
||||
// @ts-expect-error version can be undefined
|
||||
writeDatabaseToLocalCache(malwareDatabase, version);
|
||||
|
||||
if (version) {
|
||||
// Only cache the malware database when we have a version.
|
||||
writeDatabaseToLocalCache(malwareDatabase, version);
|
||||
}
|
||||
|
||||
return malwareDatabase;
|
||||
} catch (/** @type any */ error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue