Skip to content

Commit 2df8367

Browse files
authored
Merge pull request #84 from vishrutshah/return-promise
Compare method should return promise
2 parents ccc3ad2 + f948766 commit 2df8367

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/validators/openApiDiff.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class OpenApiDiff {
5959
var promise1 = self.processViaAutoRest(oldSwagger, 'old');
6060
var promise2 = self.processViaAutoRest(newSwagger, 'new');
6161

62-
Promise.all([promise1, promise2]).then(results => {
63-
self.processViaOpenApiDiff(results[0], results[1]).then((result, error) => {
62+
return Promise.all([promise1, promise2]).then(results => {
63+
return self.processViaOpenApiDiff(results[0], results[1]).then((result, error) => {
6464
console.log(result);
6565
})
6666
}).catch(err => {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oad",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"author": {
55
"name": "Microsoft Corporation",
66
"email": "[email protected]",

0 commit comments

Comments
 (0)