mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-26 10:59:23 -04:00
+ less if, more efficient
This commit is contained in:
1 parent
1e9bfa168d
commit
c40a87837e
1 file changed
+10
-9
@@ -142,18 +142,19 @@ namespace kiwix {
|
||||
if (content.empty()) {
|
||||
this->getContentByUrl( "/I/favicon.png", content,
|
||||
contentLength, mimeType);
|
||||
}
|
||||
|
||||
if (content.empty()) {
|
||||
this->getContentByUrl( "/I/favicon", content,
|
||||
contentLength, mimeType);
|
||||
}
|
||||
|
||||
if (content.empty()) {
|
||||
this->getContentByUrl( "/-/favicon", content,
|
||||
contentLength, mimeType);
|
||||
if (content.empty()) {
|
||||
this->getContentByUrl( "/I/favicon", content,
|
||||
contentLength, mimeType);
|
||||
|
||||
if (content.empty()) {
|
||||
this->getContentByUrl( "/-/favicon", content,
|
||||
contentLength, mimeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return content.empty() ? false : true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user