forked from mirrors/jj
cli: remove (another) mistakenly prefixed underscore from used variable
This commit is contained in:
parent
fa09f1531d
commit
38607c1d29
1 changed files with 2 additions and 2 deletions
|
@ -3310,11 +3310,11 @@ fn cmd_op_undo(
|
|||
fn cmd_op_restore(
|
||||
ui: &mut Ui,
|
||||
command: &CommandHelper,
|
||||
_cmd_matches: &ArgMatches,
|
||||
cmd_matches: &ArgMatches,
|
||||
) -> Result<(), CommandError> {
|
||||
let mut repo_command = command.repo_helper(ui)?;
|
||||
let repo = repo_command.repo();
|
||||
let target_op = resolve_single_op(repo, _cmd_matches.value_of("operation").unwrap())?;
|
||||
let target_op = resolve_single_op(repo, cmd_matches.value_of("operation").unwrap())?;
|
||||
let mut tx =
|
||||
repo_command.start_transaction(&format!("restore to operation {}", target_op.id().hex()));
|
||||
tx.mut_repo().set_view(target_op.view().take_store_view());
|
||||
|
|
Loading…
Reference in a new issue