-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty datetime shouldn't be converted to epoch time #47
empty datetime shouldn't be converted to epoch time #47
Conversation
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
==========================================
+ Coverage 89.25% 89.33% +0.08%
==========================================
Files 10 10
Lines 1629 1632 +3
==========================================
+ Hits 1454 1458 +4
+ Misses 146 145 -1
Partials 29 29
Continue to review full report at Codecov.
|
the changes look good, but can you address the linter comment? |
format.go
Outdated
return ParseDateTime(data.(string)) | ||
input := data.(string) | ||
if len(input) == 0 { | ||
return nil, fmt.Errorf("empty string it's invalid datetime format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should read "empty string is an invalid datetime format"
…be accepted as valid * changes error message * fixes scopelint issue Signed-off-by: Mario Morgado <[email protected]>
a new commit addresses the raised issues. |
fixes #46