diff --git a/controllers/run_controller_databricks.go b/controllers/run_controller_databricks.go index 6a3f1bf..b962731 100644 --- a/controllers/run_controller_databricks.go +++ b/controllers/run_controller_databricks.go @@ -18,11 +18,11 @@ package controllers import ( "context" + "errors" "fmt" "reflect" "strings" "time" - "errors" databricksv1alpha1 "github.com/microsoft/azure-databricks-operator/api/v1alpha1" dbmodels "github.com/xinsnake/databricks-sdk-golang/azure/models" @@ -104,8 +104,8 @@ func (r *RunReconciler) refresh(instance *databricksv1alpha1.Run) error { if err != nil { return err } - if (len(runOutput.Error) > 0){ - return errors.New(runOutput.Error) + if len(runOutput.Error) > 0 { + return errors.New(runOutput.Error) } err = r.Get(context.Background(), types.NamespacedName{