Bläddra i källkod

Fix delete endpoint

Remove fallthrough by early return.
master
TheoryOfNekomata 2 år sedan
förälder
incheckning
c4703eaa5e
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. +1
    -0
      src/modules/git/Git.service.ts

+ 1
- 0
src/modules/git/Git.service.ts Visa fil

@@ -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.');
}


Laddar…
Avbryt
Spara