Remove if-not-else patterns (#10402)
This commit is contained in:
parent
36a87d0f5c
commit
eb6f7c1240
24 changed files with 99 additions and 99 deletions
|
@ -846,11 +846,11 @@ impl Terminal {
|
|||
Some(url_match) => {
|
||||
// `]` is a valid symbol in the `file://` URL, so the regex match will include it
|
||||
// consider that when ensuring that the URL match is the same as the original word
|
||||
if sanitized_match != original_match {
|
||||
if sanitized_match == original_match {
|
||||
url_match == sanitized_match
|
||||
} else {
|
||||
url_match.start() == sanitized_match.start()
|
||||
&& url_match.end() == original_match.end()
|
||||
} else {
|
||||
url_match == sanitized_match
|
||||
}
|
||||
}
|
||||
None => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue