Passed
Pull Request — main (#1)
by ABRAHAM
02:54
created

MultiplyByThreePipe   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 3
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A handle 0 2 1
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
}