Skip to content

Commit

Permalink
Merge branch 'master' of github.com:xpepper/tracco
Browse files Browse the repository at this point in the history
  • Loading branch information
xpepper committed Mar 12, 2013
2 parents acafa6f + ea9e4a1 commit 7ef0bc0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/tracco/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ def is_valid_env?(environment)
end

def is_valid_date?(date)
begin
Date.parse(date)
true
rescue ArgumentError
false
end
Date.parse(date) rescue nil
end

def error(message)
Expand Down

0 comments on commit 7ef0bc0

Please sign in to comment.