mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move '&&' to the end of the previous line.
Following https://github.com/servo/servo/issues/10692 this is just a formating change to satisfy a new tidy requirement of not having '&&' at the beginning of a line.
This commit is contained in:
parent
01b111c43e
commit
924d804583
11 changed files with 29 additions and 29 deletions
|
@ -136,10 +136,10 @@ impl Cookie {
|
|||
if string == domain_string {
|
||||
return true;
|
||||
}
|
||||
if string.ends_with(domain_string)
|
||||
&& string.as_bytes()[string.len()-domain_string.len()-1] == b'.'
|
||||
&& string.parse::<Ipv4Addr>().is_err()
|
||||
&& string.parse::<Ipv6Addr>().is_err() {
|
||||
if string.ends_with(domain_string) &&
|
||||
string.as_bytes()[string.len()-domain_string.len()-1] == b'.' &&
|
||||
string.parse::<Ipv4Addr>().is_err() &&
|
||||
string.parse::<Ipv6Addr>().is_err() {
|
||||
return true;
|
||||
}
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue