(paths: string[], message: string)
| 211 | } |
| 212 | |
| 213 | async deleteFiles(paths: string[], message: string): Promise<DeleteFilesResult> { |
| 214 | if (!this.turboFetch) { |
| 215 | return super.deleteFiles(paths, message); |
| 216 | } |
| 217 | |
| 218 | try { |
| 219 | await this.turboCommit({ |
| 220 | branch: this.branch, |
| 221 | message, |
| 222 | deletions: paths.map(path => path.replace(/^\/+/, '')), |
| 223 | }); |
| 224 | return undefined; |
| 225 | } catch (error) { |
| 226 | if (this.shouldFallBack(error)) { |
| 227 | return super.deleteFiles(paths, message); |
| 228 | } |
| 229 | throw error; |
| 230 | } |
| 231 | } |
| 232 | } |
no test coverage detected