Skip to content

Commit

Permalink
fix: added await to complete async await functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
SB-rohitdesai committed Jun 13, 2024
1 parent b00172c commit ba3842d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ $RefParser.prototype.dereference = async function dereference (path, schema, opt

try {
await this.resolve(args.path, args.schema, args.options);
_dereference(me, args.options);
await _dereference(me, args.options);
finalize(me);
return maybe(args.callback, Promise.resolve(me.schema));
}
Expand Down

0 comments on commit ba3842d

Please sign in to comment.