Browse Source

Fix delete endpoint

Remove fallthrough by early return.
master
TheoryOfNekomata 1 year ago
parent
commit
c4703eaa5e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/modules/git/Git.service.ts

+ 1
- 0
src/modules/git/Git.service.ts View File

@@ -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…
Cancel
Save