aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/patch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/git/patch.ts')
-rw-r--r--packages/server/src/git/patch.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/git/patch.ts b/packages/server/src/git/patch.ts
index 45ffe23..4239ce4 100644
--- a/packages/server/src/git/patch.ts
+++ b/packages/server/src/git/patch.ts
@@ -130,12 +130,12 @@ export class Patch {
*
* @returns An array of hunk instances
*/
- public async getHunks(): Promise<Hunk[] | null> {
+ public async getHunks(): Promise<Hunk[]> {
const content = (await this._content()).split("\n");
const hunks = await this._ng_patch.hunks();
if(hunks.length === 0) {
- return null;
+ return [];
}
const hunks_data = hunks.reduce((result: Hunks, hunk, hunk_index) => {