Error return value is not checked (errcheck)

This commit is contained in:
Arran Ubels
2023-02-15 15:49:18 +11:00
committed by GitHub
parent 26d95ba3e6
commit 5335e6fe23
3 changed files with 11 additions and 6 deletions

View File

@@ -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)
}
}
}