mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Add gosimple linter (#9590)
This commit is contained in:
@@ -85,7 +85,7 @@ func formattedDiagnosticErrors(diag hcl.Diagnostics) []error {
|
||||
if d.Summary == "Extraneous JSON object property" {
|
||||
d.Summary = "Invalid label"
|
||||
}
|
||||
err := errors.New(fmt.Sprintf("%s: %s", d.Summary, d.Detail))
|
||||
err := fmt.Errorf("%s: %s", d.Summary, d.Detail)
|
||||
errs = append(errs, err)
|
||||
}
|
||||
return errs
|
||||
|
||||
Reference in New Issue
Block a user