Fix linter error

This commit is contained in:
Lennart Kats 2024-08-22 21:40:46 +02:00
parent f93d39430c
commit a237dfac5c
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package diag
import (
"errors"
"fmt"
"github.com/databricks/cli/libs/dyn"
@ -106,7 +107,7 @@ func (ds Diagnostics) Error() error {
if d.ID != "" {
message = string(d.ID) + ": " + message
}
return fmt.Errorf(message)
return errors.New(message)
}
}
return nil