simplified if statement

This commit is contained in:
bill bittner 2018-06-27 09:48:18 -07:00
parent 88097ab151
commit b2053a219e

View file

@ -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}) {