Skip to content

Commit bdf257c

Browse files
gkelloggdlongley
andauthored
Apply suggestions from @dlongley code review
Co-Authored-By: Dave Longley <[email protected]>
1 parent 4267b46 commit bdf257c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/documentLoaders/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module.exports = ({
6767
// add any optional requestProfile
6868
if(options.requestProfile) {
6969
headers.Accept =
70-
headers.Accept + ", application/ld+json;profile=${options.requestProfile}";
70+
headers.Accept + `, application/ld+json;profile=${options.requestProfile}`;
7171
}
7272

7373
let result;

lib/documentLoaders/xhr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = ({
5151
// add any optional requestProfile
5252
if(options.requestProfile) {
5353
headers.Accept =
54-
headers.Accept + ", application/ld+json;profile=${options.requestProfile}";
54+
headers.Accept + `, application/ld+json;profile=${options.requestProfile}`;
5555
}
5656

5757
let req;

lib/jsonld.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ jsonld.documentLoader = async url => {
857857
* @param url the URL to fetch.
858858
* @param [options] the options to use:
859859
* [documentLoader] the document loader to use.
860-
* [extractAllScripts] concatenates all matching script elements..
860+
* [extractAllScripts] concatenates all matching script elements.
861861
* [profile] used when selecting from HTML script elements.
862862
* [requestProfile] one or more profile IRIs to use in the request.
863863
*
@@ -920,7 +920,7 @@ jsonld.get = async function(url, options) {
920920
}
921921
if(frag && remoteDoc.document.length === 0) {
922922
throw new JsonLdError(
923-
'No script tag found with id=${frag}.',
923+
`No script tag found with id=${frag}.`,
924924
'jsonld.InvalidScriptElement', {
925925
code: 'invalid script element',
926926
remoteDoc

0 commit comments

Comments
 (0)