if (url.scheme || url.hostname) {
return 0;
}
- } else {
+ }
+ else {
/* The URI scheme must be present and identical except for case. */
if (!url.scheme || strcasecmp(filter.scheme, url.scheme)) {
return 0;
url.hostname + uhostlen - fhostlen)) {
return 0;
}
- } else if (filter.hostname[0] == '*') {
+ }
+ else if (filter.hostname[0] == '*') {
const size_t fhostlen = strlen(filter.hostname + 1);
const size_t uhostlen = url.hostname ? strlen(url.hostname) : 0;
url.hostname + uhostlen - fhostlen)) {
return 0;
}
- } else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
+ }
+ else if (!url.hostname || strcasecmp(filter.hostname, url.hostname)) {
return 0;
}
}
if (!url.path) {
if (*filter.path == '/' && pathlen == 1) {
return 1;
- } else {
+ }
+ else {
return 0;
}
}