Skip to content

Commit 1edd8b0

Browse files
committed
Use dependency implementation
1 parent ae8303f commit 1edd8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DIContainer/IMultiplier.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public int Multiply(int a, int b)
2121

2222
var result = 0;
2323
for (var i = 0; i < Math.Abs(b); i++)
24-
result += a;
24+
result = _calculator.Add(result, a);
2525

2626
return Math.Sign(b) == 1 ? result : -result;
2727
}

0 commit comments

Comments
 (0)