Skip to content

Commit 3423f20

Browse files
committed
Remove unnecessary nextTick.
1 parent dada58a commit 3423f20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/jsonld.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ jsonld.compact = function(input, ctx, options, callback) {
128128
}
129129

130130
var expand = function(input, options, callback) {
131-
jsonld.nextTick(function() {
132-
if(options.skipExpansion) {
133-
return callback(null, input);
134-
}
135-
jsonld.expand(input, options, callback);
136-
});
131+
if(options.skipExpansion) {
132+
return jsonld.nextTick(function() {
133+
callback(null, input);
134+
});
135+
}
136+
jsonld.expand(input, options, callback);
137137
};
138138

139139
// expand input then do compaction

0 commit comments

Comments
 (0)