Skip to content

Commit

Permalink
fix another lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsinghal committed Jan 22, 2024
1 parent 171064a commit 10d605e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/certificateprovider/azurekeyvault/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ func parseExpiresOn(s interface{}) (json.Number, error) {
return timeToDuration(eo), nil
} else if eo, err := time.Parse(expiresOnDateFormat, asStr); err == nil {
return timeToDuration(eo), nil
} else {
// unknown format
return json.Number(""), err
}
// unknown format
return json.Number(""), fmt.Errorf("unknown expires_on format %s", asStr)
}

0 comments on commit 10d605e

Please sign in to comment.