Passed
Push — main ( db0e9b...3f0e5a )
by ABRAHAM
01:04 queued 13s
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
}