Skip to content

Commit

Permalink
chore(deps): update dependency typescript to ~3.2.0 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and JustinBeckwith committed Dec 2, 2018
1 parent be468f2 commit 813412b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-dns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"prettier": "^1.13.5",
"proxyquire": "^2.0.1",
"tmp": "^0.0.33",
"typescript": "~3.1.0",
"typescript": "~3.2.0",
"uuid": "^3.2.1"
},
"nyc": {
Expand Down
8 changes: 7 additions & 1 deletion packages/google-cloud-dns/src/zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,13 @@ class Zone extends ServiceObject {
callback =
typeof optionsOrCallback === 'function' ? optionsOrCallback : callback;
if (options.force) {
this.empty(this.delete.bind(this, callback));
this.empty(err => {
if (err) {
callback!(err);
return;
}
this.delete(callback!);
});
return;
}
super.delete(callback!);
Expand Down

0 comments on commit 813412b

Please sign in to comment.