mirror of
https://github.com/araddon/dateparse.git
synced 2025-10-22 06:16:13 +08:00
Improve golint happiness
This commit is contained in:
@@ -50,7 +50,7 @@ var (
|
||||
"2014-04-26",
|
||||
}
|
||||
|
||||
DateFormatError = fmt.Errorf("Invalid Date Format")
|
||||
ErrDateFormat = fmt.Errorf("Invalid Date Format")
|
||||
|
||||
timeFormats = []string{
|
||||
// ISO 8601ish formats
|
||||
@@ -87,5 +87,5 @@ func parseShotgunStyle(raw string) (time.Time, error) {
|
||||
return t, nil
|
||||
}
|
||||
}
|
||||
return time.Time{}, DateFormatError
|
||||
return time.Time{}, ErrDateFormat
|
||||
}
|
||||
|
Reference in New Issue
Block a user