Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Oct 18, 2022
1 parent bf30523 commit 1ee1d17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fkl_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ fn main() {
}
Some(("run", matches)) => {
let function = matches.get_one::<String>("func");
let filter_impl = matches.get_one::<String>("impl");
let impl_name = matches.get_one::<String>("impl");

if function.is_none() {
error!("Please provide a function name");
return;
}

if function.is_none() {
error!("Please provide a function name");
if impl_name.is_none() {
error!("Please provide a impl name");
return;
}

let mir = mir_from_file(&feakin_path.unwrap());
builtin::endpoint_runner::execute(&mir, function.unwrap(), filter_impl.unwrap());
builtin::endpoint_runner::execute(&mir, function.unwrap(), impl_name.unwrap());
}
_ => unreachable!("clap should ensure we don't get here"),
};
Expand Down

0 comments on commit 1ee1d17

Please sign in to comment.