Pārlūkot izejas kodu

Fix delete endpoint

Remove fallthrough by early return.
master
TheoryOfNekomata pirms 2 gadiem
vecāks
revīzija
c4703eaa5e
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      src/modules/git/Git.service.ts

+ 1
- 0
src/modules/git/Git.service.ts Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt