mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-16 00:56:23 +00:00
revset: drop an unnecessary return
keyword
This commit is contained in:
parent
ac5d8eb784
commit
f9b3211d58
1 changed files with 9 additions and 11 deletions
|
@ -894,8 +894,7 @@ fn parse_symbol_rule(
|
|||
Ok(RevsetExpression::symbol(name.to_owned()))
|
||||
}
|
||||
}
|
||||
Rule::literal_string => {
|
||||
return Ok(RevsetExpression::symbol(
|
||||
Rule::literal_string => Ok(RevsetExpression::symbol(
|
||||
first
|
||||
.as_str()
|
||||
.strip_prefix('"')
|
||||
|
@ -903,8 +902,7 @@ fn parse_symbol_rule(
|
|||
.strip_suffix('"')
|
||||
.unwrap()
|
||||
.to_owned(),
|
||||
));
|
||||
}
|
||||
)),
|
||||
_ => {
|
||||
panic!("unexpected symbol parse rule: {:?}", first.as_str());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue