We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b263542 commit aa91a67Copy full SHA for aa91a67
chapter06/remove_assignments_to_parameters.rb
@@ -1,7 +1,8 @@
1
class RemoveAssignmentsToParameters
2
def discount(input_val, quantity, year_to_date)
3
+ result = input_val
4
if input_val > 50
- input_val -= 2
5
+ result -= 2
6
end
7
8
0 commit comments