Explorar el Código

Fix delete endpoint

Remove fallthrough by early return.
master
TheoryOfNekomata hace 2 años
padre
commit
c4703eaa5e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      src/modules/git/Git.service.ts

+ 1
- 0
src/modules/git/Git.service.ts Ver fichero

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


Cargando…
Cancelar
Guardar