Skip to content

Commit

Permalink
fix lint S1017: should replace this if statement with an unconditio…
Browse files Browse the repository at this point in the history
…nal `strings.TrimPrefix` (gosimple)
  • Loading branch information
sheurich committed Feb 27, 2024
1 parent ab7a2e9 commit 7ccbbc3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wfe/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -2359,9 +2359,7 @@ func (wfe *WebFrontEndImpl) updateChallenge(
// If the identifier value is for a wildcard domain then strip the wildcard
// prefix before dispatching the validation to ensure the base domain is
// validated.
if strings.HasPrefix(ident.Value, "*.") {
ident.Value = strings.TrimPrefix(ident.Value, "*.")
}
ident.Value = strings.TrimPrefix(ident.Value, "*.")

// Confirm challenge status again and update it immediately before sending it to the VA
prob = nil
Expand Down

0 comments on commit 7ccbbc3

Please sign in to comment.