Skip to content

Commit bb9d7ba

Browse files
committed
Fix lint errors.
1 parent 38e0d59 commit bb9d7ba

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/jsonld.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const LRU = require('lru-cache');
4242
const NQuads = require('./NQuads');
4343
const Rdfa = require('./Rdfa');
4444

45-
const {prependBase: _prependBase} = require ('./url');
45+
const {prependBase: _prependBase} = require('./url');
4646
const {expand: _expand} = require('./expand');
4747
const {flatten: _flatten} = require('./flatten');
4848
const {fromRDF: _fromRDF} = require('./fromRdf');
@@ -935,7 +935,7 @@ jsonld.get = async function(url, options) {
935935
}
936936
} catch(e) {
937937
if(e.name === 'jsonld.InvalidScriptElement') {
938-
throw(e)
938+
throw (e);
939939
} else {
940940
throw new JsonLdError(
941941
'Could not retrieve a JSON-LD document from the URL.',

lib/util.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,19 @@ api.parseLinkHeader = header => {
144144
};
145145

146146
/**
147-
* Parses a content-type header. The results will be key'd by the value of "rel".
147+
* Parses a content-type header.
148+
* The results will be key'd by the value of "rel".
148149
*
149150
* Accept: application/ld+json
150151
*
151152
* Parses as: ["application/ld+json", {}]
152153
*
153154
* Accept: application/ld+json;profile=http://www.w3.org/ns/json-ld#context
154155
*
155-
* Parses as: ["application/ld+json", {profile: "http://www.w3.org/ns/json-ld#context"}]
156+
* Parses as: ["application/ld+json",
157+
* {profile: "http://www.w3.org/ns/json-ld#context"}]
156158
*
157-
* If there is more than one
159+
* If there is more than one
158160
*
159161
* @param header the content-type header to parse.
160162
*/

0 commit comments

Comments
 (0)