Skip to content

Commit 9c861b9

Browse files
committed
Fixed go vet and go fmt errors
1 parent 0755550 commit 9c861b9

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

hack/update-gofmt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright 2017 The Kubernetes Authors.
3+
# Copyright 2018 The Kubernetes Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

hack/verify-all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Copyright 2017 The Kubernetes Authors.
3+
# Copyright 2018 The Kubernetes Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -21,4 +21,4 @@ set -o pipefail
2121
PKG_ROOT=$(git rev-parse --show-toplevel)
2222

2323
${PKG_ROOT}/hack/verify-gofmt.sh
24-
${PKG_ROOT}/hack/verify-govet.sh
24+
${PKG_ROOT}/hack/verify-govet.sh

hack/verify-gofmt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright 2017 The Kubernetes Authors.
2+
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

hack/verify-govet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright 2017 The Kubernetes Authors.
2+
# Copyright 2018 The Kubernetes Authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

pkg/gce-csi-driver/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func TestCreateVolumeArguments(t *testing.T) {
205205
if err != nil {
206206
t.Fatalf("Failed to create fake cloud provider: %v", err)
207207
}
208-
err = gceDriver.SetupGCEDriver(fakeCloudProvider, driver, node)
208+
err = gceDriver.SetupGCEDriver(fakeCloudProvider, nil, driver, node)
209209
if err != nil {
210210
t.Fatalf("Failed to setup GCE Driver: %v", err)
211211
}

pkg/gce-csi-driver/identity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (gceIdentity *GCEIdentityServer) GetPluginCapabilities(ctx context.Context,
4343
glog.V(5).Infof("Using default GetPluginCapabilities")
4444
return &csi.GetPluginCapabilitiesResponse{
4545
Capabilities: []*csi.PluginCapability{
46-
&csi.PluginCapability{
46+
{
4747
Type: &csi.PluginCapability_Service_{
4848
Service: &csi.PluginCapability_Service{
4949
Type: csi.PluginCapability_Service_CONTROLLER_SERVICE,

test/remote/run_remote/run_remote.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func addPubKeyToInstance(project, zone, name, pubKeyFile string) error {
466466
newMeta := &compute.Metadata{
467467
Fingerprint: fingerprint,
468468
Items: []*compute.MetadataItems{
469-
&compute.MetadataItems{
469+
{
470470
Key: "ssh-keys",
471471
Value: &newKeys,
472472
},

0 commit comments

Comments
 (0)