mirror of
https://github.com/araddon/dateparse.git
synced 2025-10-22 14:26:16 +08:00
Error return value is not checked (errcheck)
This commit is contained in:
@@ -28,7 +28,7 @@ func BenchmarkShotgunParse(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, dateStr := range testDates {
|
||||
// This is the non dateparse traditional approach
|
||||
parseShotgunStyle(dateStr)
|
||||
_ = parseShotgunStyle(dateStr)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ func BenchmarkParseAny(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, dateStr := range testDates {
|
||||
ParseAny(dateStr)
|
||||
_ = ParseAny(dateStr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user