Skip to content

Commit

Permalink
chore: lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmtsen committed Feb 10, 2024
1 parent 5903a32 commit b1adac8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/failure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Failure {
private constructor(
code: string,
description: string,
type: FailureType | string
type: FailureType | string,
) {
this.code = code;
this.description = description;
Expand All @@ -59,7 +59,7 @@ export class Failure {
*/
public static create(
code = 'General.Failure',
description = 'A failure has occurred.'
description = 'A failure has occurred.',
): Failure {
return new Failure(code, description, FailureTypes.Default);
}
Expand All @@ -75,7 +75,7 @@ export class Failure {
*/
public static unexpected(
code = 'General.Unexpected',
description = 'An unexpected failure has occurred.'
description = 'An unexpected failure has occurred.',
): Failure {
return new Failure(code, description, FailureTypes.Unexpected);
}
Expand All @@ -91,7 +91,7 @@ export class Failure {
*/
public static validation(
code = 'General.Validation',
description = 'A validation failure has occurred.'
description = 'A validation failure has occurred.',
): Failure {
return new Failure(code, description, FailureTypes.Validation);
}
Expand All @@ -107,7 +107,7 @@ export class Failure {
*/
public static conflict(
code = 'General.Conflict',
description = 'A conflict has occurred.'
description = 'A conflict has occurred.',
): Failure {
return new Failure(code, description, FailureTypes.Conflict);
}
Expand All @@ -123,7 +123,7 @@ export class Failure {
*/
public static notFound(
code: string = 'General.NotFound',
description: string = "A 'Not Found' failure has occurred."
description: string = "A 'Not Found' failure has occurred.",
): Failure {
return new Failure(code, description, FailureTypes.NotFound);
}
Expand All @@ -139,7 +139,7 @@ export class Failure {
*/
public static unauthorized(
code: string = 'General.Unauthorized',
description: string = "An 'Unauthorized' failure has occurred."
description: string = "An 'Unauthorized' failure has occurred.",
): Failure {
return new Failure(code, description, FailureTypes.Unauthorized);
}
Expand Down Expand Up @@ -169,7 +169,7 @@ export class Failure {
public static custom(
code: string,
description: string,
type: string
type: string,
): Failure {
return new Failure(code, description, type);
}
Expand Down

0 comments on commit b1adac8

Please sign in to comment.