Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 7bbe75d

Browse files
kevmo314clayreimann
authored andcommitted
bugfix(repo): return a Promise from deleteFile
Fix the bug in which deleteFile doesn't currently return anything
1 parent 37084d7 commit 7bbe75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ class Repository extends Requestable {
489489
* @return {Promise} - the promise for the http request
490490
*/
491491
deleteFile(branch, path, cb) {
492-
this.getSha(branch, path)
492+
return this.getSha(branch, path)
493493
.then((response) => {
494494
const deleteCommit = {
495495
message: `Delete the file at '${path}'`,

0 commit comments

Comments
 (0)