diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-12 21:30:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 21:30:44 -0500 |
commit | 8972ebc9cc33ef1df21c899c35006ea712f7f91f (patch) | |
tree | 396e0aaf422b61e1a0c4c7a09a7bf84a84e7f459 /cli/args/flags.rs | |
parent | 8c026dab92b20fea44bc66f84db48b885c7264d1 (diff) |
fix: always derive http client from cli flags (#17029)
I'm not sure how to test this. It doesn't seem to have an existing test.
Closes #15921
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index ac2b7a062..7c3eae778 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -203,7 +203,6 @@ pub struct UpgradeFlags { pub canary: bool, pub version: Option<String>, pub output: Option<PathBuf>, - pub ca_file: Option<String>, } #[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)] @@ -2882,14 +2881,12 @@ fn upgrade_parse(flags: &mut Flags, matches: &clap::ArgMatches) { } else { None }; - let ca_file = matches.value_of("cert").map(|s| s.to_string()); flags.subcommand = DenoSubcommand::Upgrade(UpgradeFlags { dry_run, force, canary, version, output, - ca_file, }); } @@ -3302,7 +3299,6 @@ mod tests { canary: false, version: None, output: None, - ca_file: None, }), ..Flags::default() } @@ -5754,7 +5750,6 @@ mod tests { canary: false, version: None, output: None, - ca_file: Some("example.crt".to_owned()), }), ca_file: Some("example.crt".to_owned()), ..Flags::default() |