diff --git a/pkg/appfile/storage/driver/task_test.go b/pkg/appfile/storage/driver/task_test.go index 63f1f4ffd..b43f21351 100644 --- a/pkg/appfile/storage/driver/task_test.go +++ b/pkg/appfile/storage/driver/task_test.go @@ -3,10 +3,10 @@ package driver import ( "testing" + "github.com/bmizerany/assert" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" - "github.com/bmizerany/assert" "github.com/oam-dev/kubevela/apis/core.oam.dev/v1alpha2" "github.com/oam-dev/kubevela/apis/types" "github.com/oam-dev/kubevela/pkg/appfile" diff --git a/pkg/serverlib/application.go b/pkg/serverlib/application.go index 05fe0b509..64b476dd0 100644 --- a/pkg/serverlib/application.go +++ b/pkg/serverlib/application.go @@ -180,7 +180,7 @@ func (o *DeleteOptions) DeleteApp() (string, error) { return "", err } ctx := context.Background() - var app=new(corev1alpha2.Application) + var app = new(corev1alpha2.Application) err := o.Client.Get(ctx, client.ObjectKey{Name: o.AppName, Namespace: o.Env.Namespace}, app) if err != nil { if apierrors.IsNotFound(err) {