From 9325744a9426241a2826a6fb5516269227e26efa Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 13 Feb 2020 16:02:18 -0500 Subject: Clean up fmt flags and path handling (#3988) --- cli/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cli/lib.rs') diff --git a/cli/lib.rs b/cli/lib.rs index f89eb4bd7..e646c4199 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -413,7 +413,7 @@ async fn run_script( Ok(()) } -async fn fmt_command(files: Option>, check: bool) { +async fn fmt_command(files: Vec, check: bool) { if let Err(err) = fmt::format_files(files, check) { print_err_and_exit(err); } @@ -493,9 +493,7 @@ pub fn main() { } DenoSubcommand::Eval { code } => eval_command(flags, code).await, DenoSubcommand::Fetch { files } => fetch_command(flags, files).await, - DenoSubcommand::Format { check, files } => { - fmt_command(files, check).await - } + DenoSubcommand::Fmt { check, files } => fmt_command(files, check).await, DenoSubcommand::Info { file } => info_command(flags, file).await, DenoSubcommand::Install { dir, -- cgit v1.2.3