Also using now isNotEmpty
This commit is contained in:
parent
847f1b2508
commit
bfabbcf3ba
|
@ -152,7 +152,7 @@ class FaviconFinder {
|
||||||
if let sizesString = sizesString {
|
if let sizesString = sizesString {
|
||||||
let sizes = extractSizesFromString(sizesString)
|
let sizes = extractSizesFromString(sizesString)
|
||||||
|
|
||||||
if sizes.isEmpty == false {
|
if sizes.isNotEmpty {
|
||||||
return sizes.max(by: { lhs, rhs in lhs >= rhs } )
|
return sizes.max(by: { lhs, rhs in lhs >= rhs } )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue