mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-08-29 07:08:50 +00:00
Please the linter
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user