Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Jul 13, 2016
1 parent 16be571 commit 5f8b8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time/duration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Timex.Duration do
Converts a Duration to a clock tuple, i.e. `{hour,minute,second,microsecond}`
Helpful for if you want to convert a duration to a clock and vice versa
"""
def to_clock(%__MODULE__{megaseconds: mega, seconds: sec, microseconds: micro} = duration) do
def to_clock(%__MODULE__{megaseconds: mega, seconds: sec, microseconds: micro}) do
ss = (mega * 1_000_000)+sec
ss = cond do
micro > 1_000_000 -> ss+div(micro,1_000_000)
Expand Down

0 comments on commit 5f8b8c7

Please sign in to comment.