Skip to content

Commit 20e2286

Browse files
tplookerdavidlehn
authored andcommitted
fix: minor linting issues
1 parent 3222641 commit 20e2286

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lib/expand.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ async function _expandObject({
431431
const isJsonType = element[typeKey] &&
432432
_expandIri(activeCtx,
433433
(_isArray(element[typeKey]) ? element[typeKey][0] : element[typeKey]),
434-
{vocab: true}, { ...options, typeExpansion: true }) === '@json';
434+
{vocab: true}, {...options, typeExpansion: true}) === '@json';
435435

436436
for(const key of keys) {
437437
let value = element[key];
@@ -527,7 +527,8 @@ async function _expandObject({
527527
value = Object.fromEntries(Object.entries(value).map(([k, v]) => [
528528
_expandIri(typeScopedContext, k, {vocab: true}),
529529
_asArray(v).map(vv =>
530-
_expandIri(typeScopedContext, vv, {base: true, vocab: true}, { ...options, typeExpansion: true })
530+
_expandIri(typeScopedContext, vv, {base: true, vocab: true},
531+
{...options, typeExpansion: true})
531532
)
532533
]));
533534
}
@@ -537,7 +538,8 @@ async function _expandObject({
537538
_asArray(value).map(v =>
538539
_isString(v) ?
539540
_expandIri(typeScopedContext, v,
540-
{base: true, vocab: true}, { ...options, typeExpansion: true }) : v),
541+
{base: true, vocab: true},
542+
{...options, typeExpansion: true}) : v),
541543
{propertyIsArray: options.isFrame});
542544
continue;
543545
}
@@ -937,7 +939,8 @@ function _expandValue({activeCtx, activeProperty, value, options}) {
937939
if(expandedProperty === '@id') {
938940
return _expandIri(activeCtx, value, {base: true}, options);
939941
} else if(expandedProperty === '@type') {
940-
return _expandIri(activeCtx, value, {vocab: true, base: true}, { ...options, typeExpansion: true });
942+
return _expandIri(activeCtx, value, {vocab: true, base: true},
943+
{...options, typeExpansion: true});
941944
}
942945

943946
// get type definition from context

tests/misc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ describe('expansionMap', () => {
614614
assert.equal(expansionMapCalled, true);
615615
});
616616

617-
it('should be called on relative iri for type term in scoped context', async () => {
617+
it('should be called on relative iri for type\
618+
term in scoped context', async () => {
618619
const docWithRelativeIriId = {
619620
'@context': {
620621
'definedType': {

0 commit comments

Comments
 (0)