Skip to content

Commit

Permalink
small cleanup, removed hard coded, duplicate strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMissal committed Jun 15, 2012
1 parent 0b8492f commit 8c355f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TempusReader/Time.cs
Expand Up @@ -10,11 +10,11 @@ public class Time : IEquatable<Time>, IComparable<Time>
private static readonly Lexer Lexer = new TimeLexer();
private static readonly IDictionary<string, Func<double, TimeSpan>> DateParts = new Dictionary<string, Func<double, TimeSpan>>
{
{ "milliseconds", TimeSpan.FromMilliseconds },
{ "seconds", TimeSpan.FromSeconds },
{ "minutes", TimeSpan.FromMinutes },
{ "hours", TimeSpan.FromHours },
{ "days", TimeSpan.FromDays },
{ TimeLexer.Milliseconds.Name, TimeSpan.FromMilliseconds },
{ TimeLexer.Seconds.Name, TimeSpan.FromSeconds },
{ TimeLexer.Minutes.Name, TimeSpan.FromMinutes },
{ TimeLexer.Hours.Name, TimeSpan.FromHours },
{ TimeLexer.Days.Name, TimeSpan.FromDays },
};

private readonly TimeSpan _timeSpan;
Expand Down

0 comments on commit 8c355f4

Please sign in to comment.