lint code

This commit is contained in:
lj176172
2020-12-30 14:13:27 +08:00
parent 062c906e95
commit b52fc09fd6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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) {