make criterion args work, small simplification

This commit is contained in:
Bernardo 2018-12-22 22:11:10 +01:00
parent dc2afae991
commit c886b72dab
3 changed files with 18 additions and 18 deletions

View file

@ -270,9 +270,6 @@ pub fn translate_offset_with_edit(
Step::Newline(n) => {
if offset < *n {
return res.to_line_col(offset);
} else if offset == *n {
res.add_line(*n);
return res.to_line_col(offset);
} else {
res.add_line(*n);
}