ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: remove mistakenly prefixed underscore from used variable

This commit is contained in:
Martin von Zweigbergk 2021-10-20 16:42:12 -07:00
parent 2e4dc019d9
commit 9a3127e659

View file

@ -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(