Skip to content

Commit

Permalink
Merge pull request #84 from vishrutshah/return-promise
Browse files Browse the repository at this point in the history
Compare method should return promise
  • Loading branch information
vishrutshah authored Jul 21, 2017
2 parents ccc3ad2 + f948766 commit 2df8367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/validators/openApiDiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class OpenApiDiff {
var promise1 = self.processViaAutoRest(oldSwagger, 'old');
var promise2 = self.processViaAutoRest(newSwagger, 'new');

Promise.all([promise1, promise2]).then(results => {
self.processViaOpenApiDiff(results[0], results[1]).then((result, error) => {
return Promise.all([promise1, promise2]).then(results => {
return self.processViaOpenApiDiff(results[0], results[1]).then((result, error) => {
console.log(result);
})
}).catch(err => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oad",
"version": "0.1.5",
"version": "0.1.6",
"author": {
"name": "Microsoft Corporation",
"email": "[email protected]",
Expand Down

0 comments on commit 2df8367

Please sign in to comment.