Change resetAntivirusEnabledToDefault to private function

Make resetAntivirusEnabledToDefault private to limit scope.
This commit is contained in:
Kosztyk 2026-01-11 19:55:19 +02:00 committed by GitHub
parent 2d954a4c4c
commit a5fbe90ff2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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