simplified if statement
This commit is contained in:
parent
88097ab151
commit
b2053a219e
1 changed files with 1 additions and 6 deletions
|
@ -7,12 +7,7 @@ function headersMatchesSocialBotList (headers) {
|
|||
'facebookexternalhit': 1,
|
||||
'Twitterbot' : 1,
|
||||
};
|
||||
if (socialBotList[userAgent]) {
|
||||
logger.debug('headers on request matched a social bot.');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return socialBotList[userAgent];
|
||||
}
|
||||
|
||||
function clientAcceptsHtml ({accept}) {
|
||||
|
|
Loading…
Reference in a new issue