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

cli: remove (another) mistakenly prefixed underscore from used variable

This commit is contained in:
Martin von Zweigbergk 2021-10-20 21:40:27 -07:00
parent fa09f1531d
commit 38607c1d29

View file

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