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

MultiplyByThreePipe.handle   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 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
}