Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup!: default disable-file-downloads undefined
  • Loading branch information
jsjoeio committed Apr 11, 2022
commit df8fff617eb2fd1c7d1baf4474542f157c4cf6c8
5 changes: 0 additions & 5 deletions src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ export interface DefaultedArgs extends ConfigArgs {
usingEnvHashedPassword: boolean
"extensions-dir": string
"user-data-dir": string
"disable-file-downloads": boolean
/* Positional arguments. */
_: string[]
}
Expand Down Expand Up @@ -562,10 +561,6 @@ export async function setDefaults(cliArgs: UserProvidedArgs, configArgs?: Config
const proxyDomains = new Set((args["proxy-domain"] || []).map((d) => d.replace(/^\*\./, "")))
args["proxy-domain"] = Array.from(proxyDomains)

if (!args["disable-file-downloads"]) {
args["disable-file-downloads"] = false
}

if (typeof args._ === "undefined") {
args._ = []
}
Expand Down
1 change: 0 additions & 1 deletion test/unit/node/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const defaults = {
host: "localhost",
port: 8080,
"proxy-domain": [],
"disable-file-downloads": false,
usingEnvPassword: false,
usingEnvHashedPassword: false,
"extensions-dir": path.join(paths.data, "extensions"),
Expand Down