refactor: no-inferrable-types

This commit is contained in:
Tibo De Peuter 2025-03-23 13:22:39 +01:00
parent e1aba11222
commit e84c772916
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
14 changed files with 22 additions and 18 deletions

View file

@ -5,7 +5,7 @@ import { HttpException } from './httpException.js';
*/
export class BadRequestException extends HttpException {
constructor(message: string = 'Bad Request') {
constructor(message = 'Bad Request') {
super(400, message);
}
}

View file

@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
* Exception for HTTP 403 Forbidden
*/
export class ForbiddenException extends HttpException {
constructor(message: string = 'Forbidden') {
constructor(message = 'Forbidden') {
super(403, message);
}
}

View file

@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
* Exception for HTTP 404 Not Found
*/
export class NotFoundException extends HttpException {
constructor(message: string = 'Not Found') {
constructor(message = 'Not Found') {
super(404, message);
}
}

View file

@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
* Exception for HTTP 401 Unauthorized
*/
export class UnauthorizedException extends HttpException {
constructor(message: string = 'Unauthorized') {
constructor(message = 'Unauthorized') {
super(401, message);
}
}