()
| 71 | } |
| 72 | |
| 73 | public remove(): Promise<any> { |
| 74 | return new Promise((resolve, reject) => { |
| 75 | let hasError = false; |
| 76 | const localError = function (error: any) { |
| 77 | hasError = true; |
| 78 | reject(error); |
| 79 | }; |
| 80 | |
| 81 | this.removeSync(localError); |
| 82 | if (!hasError) { |
| 83 | resolve(true); |
| 84 | } |
| 85 | }); |
| 86 | } |
| 87 | |
| 88 | public removeSync(onError?: (error: any) => any): void { |
| 89 | if (this._isKnown) { |
nothing calls this directly
no test coverage detected