diff --git a/nym-validator-rewarder/src/cli/process_until.rs b/nym-validator-rewarder/src/cli/process_until.rs index 47756447ea..f1c15470d0 100644 --- a/nym-validator-rewarder/src/cli/process_until.rs +++ b/nym-validator-rewarder/src/cli/process_until.rs @@ -27,14 +27,11 @@ pub struct Args { } pub(crate) async fn execute(args: Args) -> Result<(), NymRewarderError> { - match (args.start_height, args.stop_height) { - (Some(start), Some(end)) => { - if start > end { - eprintln!("the start height can't be larger than the stop height!"); - return Ok(()); - } + if let (Some(start), Some(end)) = (args.start_height, args.stop_height) { + if start > end { + eprintln!("the start height can't be larger than the stop height!"); + return Ok(()); } - _ => (), } let config =