simplify boolean expressions
This commit is contained in:
parent
0eb878d2aa
commit
56a3da3bd0
8 changed files with 13 additions and 13 deletions
|
|
@ -206,7 +206,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
// read `::` if previous code parsed less than 8 groups
|
||||
if !self.read_given_char(':').is_some() || !self.read_given_char(':').is_some() {
|
||||
if self.read_given_char(':').is_none() || self.read_given_char(':').is_none() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue