Skip to content

Commit 75f1ec9

Browse files
committed
Fixes.
1 parent 86a3405 commit 75f1ec9

10 files changed

+10
-10
lines changed

simple/csharp/remove-assignments-to-parameters_after.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ int Discount(int inputVal, int quantity)
22
{
33
int result = inputVal;
44

5-
if (inputVal > 50)
5+
if (quantity > 50)
66
{
77
result -= 2;
88
}

simple/csharp/remove-assignments-to-parameters_before.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int Discount(int inputVal, int quantity)
22
{
3-
if (inputVal > 50)
3+
if (quantity > 50)
44
{
55
inputVal -= 2;
66
}

simple/java/remove-assignments-to-parameters_after.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int discount(int inputVal, int quantity) {
22
int result = inputVal;
3-
if (inputVal > 50) {
3+
if (quantity > 50) {
44
result -= 2;
55
}
66
// ...

simple/java/remove-assignments-to-parameters_before.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
int discount(int inputVal, int quantity) {
2-
if (inputVal > 50) {
2+
if (quantity > 50) {
33
inputVal -= 2;
44
}
55
// ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
function discount($inputVal, $quantity) {
33
$result = $inputVal;
4-
if ($inputVal > 50) {
4+
if ($quantity > 50) {
55
$result -= 2;
66
}
77
...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
function discount($inputVal, $quantity) {
3-
if ($inputVal > 50) {
3+
if ($quantity > 50) {
44
$inputVal -= 2;
55
}
66
...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def discount(inputVal, quantity):
22
result = inputVal
3-
if inputVal > 50:
3+
if quantity > 50:
44
result -= 2
55
# ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def discount(inputVal, quantity):
2-
if inputVal > 50:
2+
if quantity > 50:
33
inputVal -= 2
44
# ...

simple/typescript/remove-assignments-to-parameters_after.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
discount(inputVal: number, quantity: number): number {
22
let result = inputVal;
3-
if (inputVal > 50) {
3+
if (quantity > 50) {
44
result -= 2;
55
}
66
// ...

simple/typescript/remove-assignments-to-parameters_before.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
discount(inputVal: number, quantity: number): number {
2-
if (inputVal > 50) {
2+
if (quantity > 50) {
33
inputVal -= 2;
44
}
55
// ...

0 commit comments

Comments
 (0)