Skip to content

Commit 31fa2dc

Browse files
MageMasherdavidlehn
authored andcommitted
Fix eslint style error
1 parent 1b65cef commit 31fa2dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/documentLoaders/node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ module.exports = ({
114114
alternate = linkHeaders['alternate'];
115115
if(alternate &&
116116
alternate.type == 'application/ld+json' &&
117+
// eslint-disable-next-line max-len
117118
!(res.headers['content-type'] || '').match(/^application\/(\w*\+)?json$/)) {
118119
res.headers.location = prependBase(url, alternate.target);
119120
}
120121
}
121122

122123
// handle redirect
123-
if((alternate || res.statusCode >= 300 && res.statusCode < 400) && res.headers.location) {
124+
if((alternate ||
125+
res.statusCode >= 300 && res.statusCode < 400) && res.headers.location) {
124126
if(redirects.length === maxRedirects) {
125127
throw new JsonLdError(
126128
'URL could not be dereferenced; there were too many redirects.',

0 commit comments

Comments
 (0)