From b52fc09fd62cec41464a53e5d13f5de9eb2bef10 Mon Sep 17 00:00:00 2001 From: lj176172 Date: Wed, 30 Dec 2020 14:13:27 +0800 Subject: [PATCH] lint code --- pkg/appfile/storage/driver/task_test.go | 2 +- pkg/serverlib/application.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {