Skip to content

Commit 16f3367

Browse files
tplookerdavidlehn
authored andcommitted
fix: style nit
1 parent f0c8467 commit 16f3367

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/context.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,11 @@ function _expandIri(activeCtx, value, relativeTo, localCtx, defined, options) {
10411041
}
10421042
}
10431043

1044-
// prepend vocab
10451044
if(relativeTo.vocab && '@vocab' in activeCtx) {
1045+
// prepend vocab
10461046
value = activeCtx['@vocab'] + value;
1047-
}
1048-
1049-
// prepend base
1050-
else if(relativeTo.base && '@base' in activeCtx) {
1047+
} else if(relativeTo.base && '@base' in activeCtx) {
1048+
// prepend base
10511049
if(activeCtx['@base']) {
10521050
// The null case preserves value as potentially relative
10531051
value = prependBase(prependBase(options.base, activeCtx['@base']), value);

0 commit comments

Comments
 (0)