mirror of
https://github.com/denoland/deno.git
synced 2025-07-07 21:35:07 +00:00
fmt
This commit is contained in:
parent
ee04ca62fd
commit
2025c978eb
3 changed files with 15 additions and 8 deletions
|
@ -787,7 +787,10 @@ async fn initialize_tunnel(
|
|||
|
||||
let factory = CliFactory::from_flags(Arc::new(flags.clone()));
|
||||
let cli_options = factory.cli_options()?;
|
||||
let deploy_config = cli_options.start_dir.to_deploy_config()?.expect("auth to be called");
|
||||
let deploy_config = cli_options
|
||||
.start_dir
|
||||
.to_deploy_config()?
|
||||
.expect("auth to be called");
|
||||
|
||||
eprintln!(
|
||||
"{}{}{}",
|
||||
|
|
|
@ -1834,12 +1834,14 @@ impl ConfigFile {
|
|||
&self,
|
||||
) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
||||
match &self.json.deploy {
|
||||
Some(config) => Ok(Some(serde_json::from_value(config.clone()).map_err(|error| {
|
||||
ToInvalidConfigError::Parse {
|
||||
config: "deploy",
|
||||
source: error,
|
||||
}
|
||||
})?)),
|
||||
Some(config) => {
|
||||
Ok(Some(serde_json::from_value(config.clone()).map_err(
|
||||
|error| ToInvalidConfigError::Parse {
|
||||
config: "deploy",
|
||||
source: error,
|
||||
},
|
||||
)?))
|
||||
}
|
||||
None => Ok(None),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2000,7 +2000,9 @@ impl WorkspaceDirectory {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn to_deploy_config(&self) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
||||
pub fn to_deploy_config(
|
||||
&self,
|
||||
) -> Result<Option<DeployConfig>, ToInvalidConfigError> {
|
||||
let config = if let Some(deno_json) = self.deno_json.as_ref() {
|
||||
if let Some(config) = deno_json.member.to_deploy_config()? {
|
||||
Some(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue