Skip to content

Commit 8aa0dec

Browse files
committed
fix lint2
1 parent 673e825 commit 8aa0dec

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

internal/provider/adc/translator/apisixconsumer.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one or more
2-
// contributor license agreements. See the NOTICE file distributed with
3-
// this work for additional information regarding copyright ownership.
4-
// The ASF licenses this file to You under the Apache License, Version 2.0
5-
// (the "License"); you may not use this file except in compliance with
6-
// the License. You may obtain a copy of the License at
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
74
//
85
// http://www.apache.org/licenses/LICENSE-2.0
96
//
@@ -12,19 +9,21 @@
129
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
// See the License for the specific language governing permissions and
1411
// limitations under the License.
12+
1513
package translator
1614

1715
import (
1816
"fmt"
1917
"strconv"
2018

19+
"github.com/pkg/errors"
20+
k8stypes "k8s.io/apimachinery/pkg/types"
21+
2122
adctypes "github.com/apache/apisix-ingress-controller/api/adc"
2223
v2 "github.com/apache/apisix-ingress-controller/api/v2"
2324
"github.com/apache/apisix-ingress-controller/internal/controller/label"
2425
"github.com/apache/apisix-ingress-controller/internal/provider"
2526
"github.com/apache/apisix-ingress-controller/internal/types"
26-
"github.com/pkg/errors"
27-
k8stypes "k8s.io/apimachinery/pkg/types"
2827
)
2928

3029
var (

internal/types/plugin.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
// Licensed to the Apache Software Foundation (ASF) under one or more
2-
// contributor license agreements. See the NOTICE file distributed with
3-
// this work for additional information regarding copyright ownership.
4-
// The ASF licenses this file to You under the Apache License, Version 2.0
5-
// (the "License"); you may not use this file except in compliance with
6-
// the License. You may obtain a copy of the License at
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
74
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
5+
// http://www.apache.org/licenses/LICENSE-2.0
96
//
107
// Unless required by applicable law or agreed to in writing, software
118
// distributed under the License is distributed on an "AS IS" BASIS,
129
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
// See the License for the specific language governing permissions and
1411
// limitations under the License.
12+
1513
package types
1614

1715
import (

0 commit comments

Comments
 (0)