瀏覽代碼

Fix delete endpoint

Remove fallthrough by early return.
master
TheoryOfNekomata 2 年之前
父節點
當前提交
c4703eaa5e
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/modules/git/Git.service.ts

+ 1
- 0
src/modules/git/Git.service.ts 查看文件

@@ -41,6 +41,7 @@ export class GitServiceImpl implements GitService {
const cause = causeRaw as Error;
throw new UnableToDeleteRepoError('Something went wrong while deleting the repo.', { cause, });
}
return;
}
throw new UnauthorizedToDeleteRepoError('Could not delete repo with insufficient authorization.');
}


Loading…
取消
儲存