Skip to content

Commit

Permalink
Removed some 'assigned but unused' variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
wkranec committed Jul 23, 2013
1 parent 0b3b692 commit 2917379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/finance/amortization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,6 @@ class Numeric
# @see Amortization#new
# @api public
def amortize(*rates, &block)
amortization = Finance::Amortization.new(self, *rates, &block)
Finance::Amortization.new(self, *rates, &block)
end
end
4 changes: 2 additions & 2 deletions lib/finance/cashflows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def irr

func = Function.new(self, :npv)
rate = [ func.one ]
n = nlsolve( func, rate )
nlsolve( func, rate )
rate[0]
end

Expand Down Expand Up @@ -97,7 +97,7 @@ def xirr(iterations=100)

func = Function.new(self, :xnpv)
rate = [ func.one ]
n = nlsolve( func, rate )
nlsolve( func, rate )
Rate.new(rate[0], :apr, :compounds => :annually)
end

Expand Down

0 comments on commit 2917379

Please sign in to comment.