diff --git a/acme/types.go b/acme/types.go index 1f31ae0a..e959cafc 100644 --- a/acme/types.go +++ b/acme/types.go @@ -103,7 +103,7 @@ func (a *AuthorizationError) Error() string { e[i] = err.Error() } - if len(a.Identifier) > 0 { + if a.Identifier != "" { return fmt.Sprintf("acme: authorization error for %s: %s", a.Identifier, strings.Join(e, "; ")) }