Skip to content

Commit

Permalink
Tweaked pro constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jan 25, 2018
1 parent f419db5 commit 954bd87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/@ionic-native/plugins/pro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ export class Pro extends IonicNativePlugin {
*/
@CordovaCheck({ sync: true })
deploy(): ProDeploy {
if (this._deploy) return this._deploy;
else return this._deploy = new ProDeploy(Pro.getPlugin().deploy);
if (this._deploy) {
return this._deploy;
} else {
this._deploy = new ProDeploy(Pro.getPlugin().deploy);
return this._deploy;
}
}

/**
Expand Down

0 comments on commit 954bd87

Please sign in to comment.