Skip to content

Commit 91b5c30

Browse files
author
deiu
committed
Simplified the if test
1 parent b8469a3 commit 91b5c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/header.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function negotiateContentType(req) {
8686
function parseAcceptRDFHeader(req) {
8787
var acceptFinalValue;
8888
var acceptHeader = negotiateContentType(req);
89-
if (acceptHeader === undefined || acceptHeader.length === 0) {
89+
if (!acceptHeader || acceptHeader.length === 0) {
9090
acceptFinalValue = undefined;
9191
} else {
9292
for (var i in acceptHeader) {

0 commit comments

Comments
 (0)