Please the linter

This commit is contained in:
Catalan Lover
2026-05-04 17:09:26 +02:00
parent 2b92fa1866
commit d340175c5e
2 changed files with 10 additions and 9 deletions
+9 -5
View File
@@ -47,7 +47,10 @@ export function getNonDefaultConfigProperties(
if ("pantalaimon" in nonDefault && isConfigRecord(nonDefault.pantalaimon)) {
nonDefault.pantalaimon.password = "REDACTED";
}
if ("zeroTouchDeploymentSelfLogin" in nonDefault && isConfigRecord(nonDefault.zeroTouchDeploymentSelfLogin)) {
if (
"zeroTouchDeploymentSelfLogin" in nonDefault &&
isConfigRecord(nonDefault.zeroTouchDeploymentSelfLogin)
) {
nonDefault.zeroTouchDeploymentSelfLogin.password = "REDACTED";
}
if (
@@ -333,10 +336,11 @@ function getConfigMeta(): NonNullable<IConfig["configMeta"]> {
process.argv,
"--pantalaimon-password-path"
),
isZeroTouchDeploymentSelfLoginPasswordOptionUsed: isCommandLineOptionPresent(
process.argv,
"--zero-touch-deployment-self-login-password-path"
),
isZeroTouchDeploymentSelfLoginPasswordOptionUsed:
isCommandLineOptionPresent(
process.argv,
"--zero-touch-deployment-self-login-password-path"
),
isHttpAntispamAuthorizationPathOptionUsed: isCommandLineOptionPresent(
process.argv,
"--http-antispam-authorization-path"
@@ -18,10 +18,7 @@ describe("zeroTouchDeploymentSelfLogin", function () {
username: "bot-user",
password: "bot-password",
},
} satisfies Pick<
IConfig,
"homeserverUrl" | "zeroTouchDeploymentSelfLogin"
>;
} satisfies Pick<IConfig, "homeserverUrl" | "zeroTouchDeploymentSelfLogin">;
const storage: IStorageProvider = {
setSyncToken() {},
getSyncToken() {