mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-06 09:32:37 +00:00
Merge pull request #23660 from goltermann/vetclean
Automatic merge from submit-queue Additional go vet fixes Mostly: - pass lock by value - bad syntax for struct tag value - example functions not formatted properly
This commit is contained in:
@@ -31,8 +31,8 @@ import (
|
||||
|
||||
const pluginName = "kubernetes.io/flocker"
|
||||
|
||||
func newInitializedVolumePlugMgr(t *testing.T) (volume.VolumePluginMgr, string) {
|
||||
plugMgr := volume.VolumePluginMgr{}
|
||||
func newInitializedVolumePlugMgr(t *testing.T) (*volume.VolumePluginMgr, string) {
|
||||
plugMgr := &volume.VolumePluginMgr{}
|
||||
dir, err := utiltesting.MkTmpdir("flocker")
|
||||
assert.NoError(t, err)
|
||||
plugMgr.InitPlugins(ProbeVolumePlugins(), volumetest.NewFakeVolumeHost(dir, nil, nil))
|
||||
|
||||
Reference in New Issue
Block a user