mirror of https://github.com/databricks/cli.git
Fix linter error
This commit is contained in:
parent
f93d39430c
commit
a237dfac5c
|
@ -1,6 +1,7 @@
|
||||||
package diag
|
package diag
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/databricks/cli/libs/dyn"
|
"github.com/databricks/cli/libs/dyn"
|
||||||
|
@ -106,7 +107,7 @@ func (ds Diagnostics) Error() error {
|
||||||
if d.ID != "" {
|
if d.ID != "" {
|
||||||
message = string(d.ID) + ": " + message
|
message = string(d.ID) + ": " + message
|
||||||
}
|
}
|
||||||
return fmt.Errorf(message)
|
return errors.New(message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue