Chore: Enable exhaustive linter (#29458)

* Chore: Enable exhaustive linter

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-12-01 09:53:27 +01:00
committed by GitHub
parent cbb2c0a5d8
commit f55818ca70
16 changed files with 37 additions and 16 deletions

View File

@@ -291,7 +291,7 @@ func formatDate(t time.Time, pattern string) string {
if day == time.Sunday {
dayOfWeekIso = 7
}
quarter := 4
var quarter int
switch t.Month() {
case time.January, time.February, time.March:
quarter = 1
@@ -299,6 +299,8 @@ func formatDate(t time.Time, pattern string) string {
quarter = 2
case time.July, time.August, time.September:
quarter = 3
default:
quarter = 4
}
for i, formatted := range formattedDatePatterns {