forked from mirrors/jj
cli: remove mistakenly prefixed underscore from used variable
This commit is contained in:
parent
2e4dc019d9
commit
9a3127e659
1 changed files with 2 additions and 2 deletions
|
@ -3284,11 +3284,11 @@ fn cmd_op_undo(
|
|||
ui: &mut Ui,
|
||||
command: &CommandHelper,
|
||||
_op_matches: &ArgMatches,
|
||||
_cmd_matches: &ArgMatches,
|
||||
cmd_matches: &ArgMatches,
|
||||
) -> Result<(), CommandError> {
|
||||
let mut repo_command = command.repo_helper(ui)?;
|
||||
let repo = repo_command.repo();
|
||||
let bad_op = resolve_single_op(repo, _cmd_matches.value_of("operation").unwrap())?;
|
||||
let bad_op = resolve_single_op(repo, cmd_matches.value_of("operation").unwrap())?;
|
||||
let parent_ops = bad_op.parents();
|
||||
if parent_ops.len() > 1 {
|
||||
return Err(CommandError::UserError(
|
||||
|
|
Loading…
Reference in a new issue