mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
lint code
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user