Skip to content

Commit 7dd4e63

Browse files
davidlehndlongley
authored andcommitted
Use asArray helper.
1 parent e967dab commit 7dd4e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ api.process = ({activeCtx, localCtx, options,
5252
_isArray(localCtx['@context'])) {
5353
localCtx = localCtx['@context'];
5454
}
55-
const ctxs = _isArray(localCtx) ? localCtx : [localCtx];
55+
const ctxs = _asArray(localCtx);
5656

5757
// no contexts in array, return current active context w/o changes
5858
if(ctxs.length === 0) {

0 commit comments

Comments
 (0)