MSP-8299 - linter fix
This commit is contained in:
1 parent
16462eeace
commit
a5b4f13300
1 file changed
+3
-3
@@ -174,17 +174,17 @@ func (c Config) handleCreateUpdateConfigError(err error) error {
|
||||
apiErr := apierrors.FromError(err)
|
||||
if apiErr != nil {
|
||||
for field, desc := range apiErr.Details {
|
||||
stringBuilder.WriteString(fmt.Sprintf("%s | %s\n", field, desc))
|
||||
fmt.Fprintf(&stringBuilder, "%s | %s\n", field, desc)
|
||||
}
|
||||
} else {
|
||||
for _, detail := range errorStatus.Details() {
|
||||
switch d := detail.(type) {
|
||||
case *epb.BadRequest:
|
||||
for _, violation := range d.FieldViolations {
|
||||
stringBuilder.WriteString(fmt.Sprintf("%s | %s\n", violation.Field, violation.Description))
|
||||
fmt.Fprintf(&stringBuilder, "%s | %s\n", violation.Field, violation.Description)
|
||||
}
|
||||
default:
|
||||
stringBuilder.WriteString(fmt.Sprint(d))
|
||||
fmt.Fprint(&stringBuilder, d)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user