Skip to content

Commit 0e5c6af

Browse files
davidlehndlongley
authored andcommitted
Fix lint issues.
1 parent a9249b9 commit 0e5c6af

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/context.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ api.cache = new ActiveContextCache();
4646
* @return the new active context.
4747
*/
4848
api.process = ({activeCtx, localCtx, options,
49-
propertyTermDefinition = false}) => {
49+
propertyTermDefinition = false}) => {
5050
// normalize local context to an array of @context objects
5151
if(_isObject(localCtx) && '@context' in localCtx &&
5252
_isArray(localCtx['@context'])) {
@@ -257,7 +257,7 @@ api.createTermDefinition = (activeCtx, localCtx, term, defined) => {
257257
throw new JsonLdError(
258258
'Invalid JSON-LD syntax; tried to redefine a sealed term.',
259259
'jsonld.SyntaxError',
260-
{code: 'sealed term redefinition', context: localCtx, term: term});
260+
{code: 'sealed term redefinition', context: localCtx, term});
261261
}
262262

263263
// remove old mapping
@@ -409,7 +409,7 @@ api.createTermDefinition = (activeCtx, localCtx, term, defined) => {
409409
if(value['@sealed']) {
410410
activeCtx.sealed[term] = true;
411411
}
412-
} else if ('@sealed' in defined) {
412+
} else if('@sealed' in defined) {
413413
if(defined['@sealed']) {
414414
activeCtx.sealed[term] = true;
415415
}

lib/expand.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,9 @@ function _expandObject({
556556
let termCtx = activeCtx;
557557
const ctx = _getContextValue(activeCtx, key, '@context');
558558
if(ctx) {
559-
termCtx = _processContext({activeCtx, localCtx: ctx, options,
560-
propertyTermDefinition: true});
559+
termCtx = _processContext({
560+
activeCtx, localCtx: ctx, options, propertyTermDefinition: true
561+
});
561562
}
562563

563564
const container = _getContextValue(termCtx, key, '@container') || [];

0 commit comments

Comments
 (0)