From 3793c38d501a83b12ffba074a23af00d4147dab0 Mon Sep 17 00:00:00 2001 From: Ryan Brooks Date: Thu, 10 Jul 2025 12:56:41 -0700 Subject: [PATCH] Update to original panic if paths arg is missing --- src/commands/mobile_app/upload.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/commands/mobile_app/upload.rs b/src/commands/mobile_app/upload.rs index ae079de7a5..082a1582e6 100644 --- a/src/commands/mobile_app/upload.rs +++ b/src/commands/mobile_app/upload.rs @@ -50,12 +50,9 @@ pub fn make_command(command: Command) -> Command { } pub fn execute(matches: &ArgMatches) -> Result<()> { - let path_strings: Vec<_> = match matches.get_many::("paths") { - Some(paths) => paths.collect(), - None => { - return Err(anyhow!("clap error: paths argument is required")); - } - }; + let path_strings = matches + .get_many::("paths") + .expect("paths argument is required"); let sha = matches .get_one("sha")