Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 5 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | export class MultiplyByThreePipe { |
||
2 | async handle(value: number, next: (value: number) => Promise<number>): Promise<number> { |
||
3 | return next(value * 3); // Multiply by 3 and then pass to the next pipe |
||
4 | } |
||
5 | } |