浏览代码

Fix delete endpoint

Remove fallthrough by early return.
master
父节点
当前提交
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.');
}


正在加载...
取消
保存