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

helpers/pipe-class.ts   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 5
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
mnd 0
bc 0
fnc 2
dl 0
loc 5
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A MultiplyByThreePipe.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
}