Skip to content

Commit 7cc3d1c

Browse files
davidlehngkellogg
authored andcommitted
Fix lint issues.
1 parent 9a9bbdb commit 7cc3d1c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/frame.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,10 @@ api.frame = (state, subjects, frame, parent, property = null) => {
231231

232232
// recurse into list
233233
if(graphTypes.isList(o)) {
234-
const subframe = (frame[prop] && frame[prop][0] && frame[prop][0]['@list']) ?
235-
frame[prop][0]['@list'] :
236-
_createImplicitFrame(flags);
234+
const subframe =
235+
(frame[prop] && frame[prop][0] && frame[prop][0]['@list']) ?
236+
frame[prop][0]['@list'] :
237+
_createImplicitFrame(flags);
237238

238239
// add empty list
239240
const list = {'@list': []};

lib/jsonld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ jsonld.get = async function(url, options) {
909909
for(let i = 0; i < scripts.length; i++) {
910910
const script = scripts[i];
911911
// only application/ld+json
912-
const {type, parameters} = contentType.parse(script.getAttribute('type'));
912+
const {type} = contentType.parse(script.getAttribute('type'));
913913
if(type !== 'application/ld+json') {
914914
continue;
915915
}

tests/test-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ try {
3232
} catch(e) {
3333
htmlSupport = false;
3434
}
35-
console.log("HTML Support: " + htmlSupport);
35+
console.log('HTML Support: ' + htmlSupport);
3636

3737
const TEST_TYPES = {
3838
'jld:CompactTest': {

0 commit comments

Comments
 (0)