Update avToggle.ts

This commit is contained in:
Kosztyk 2026-01-11 23:48:39 +02:00 committed by GitHub
parent 58fafe88bf
commit 089bc8ed85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,11 +34,3 @@ export function setAntivirusEnabled(enabled: boolean): void {
} }
antivirusEnabled = Boolean(enabled); antivirusEnabled = Boolean(enabled);
} }
/**
* Useful if env / configuration changes at runtime (tests, hot reload).
* Not exported because it is not used externally (keeps knip clean).
*/
function resetAntivirusEnabledToDefault(): void {
antivirusEnabled = CLAMAV_CONFIGURED ? ANTIVIRUS_ENABLED_DEFAULT : false;
}