Skip to content

Commit

Permalink
asserts: remove unused function, fix for linter
Browse files Browse the repository at this point in the history
Merge pull request #11382 from pedronis/asserts-fix-for-linter

this was flagged by deadcode/unused.

there is no obvious future use case for this anymore so I'm removing it
but this will not always be clear cut with header_checks.go functions
which is a growing helper library
  • Loading branch information
pedronis committed Feb 14, 2022
2 parents c56d18f + 50d83b8 commit 52b49e1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions asserts/header_checks.go
Expand Up @@ -180,10 +180,6 @@ func checkRFC3339DateWhat(m map[string]interface{}, name, what string) (time.Tim
return date, nil
}

func checkRFC3339DateWithDefault(headers map[string]interface{}, name string, defl time.Time) (time.Time, error) {
return checkRFC3339DateWithDefaultWhat(headers, name, "header", defl)
}

func checkRFC3339DateWithDefaultWhat(m map[string]interface{}, name, what string, defl time.Time) (time.Time, error) {
value, ok := m[name]
if !ok {
Expand Down

0 comments on commit 52b49e1

Please sign in to comment.