Modify NewVolumeManager() function return value

Since function NewVolumeManager() will always return vm and nil, we do not need the second return value, it will always be nil.
This commit is contained in:
NickrenREN
2016-12-09 10:18:52 +08:00
committed by NickrenREN
parent a57c33bd28
commit 312cd1bbe6
5 changed files with 10 additions and 18 deletions

View File

@@ -99,7 +99,7 @@ func TestRunOnce(t *testing.T) {
if err != nil {
t.Fatalf("failed to initialize VolumePluginMgr: %v", err)
}
kb.volumeManager, err = volumemanager.NewVolumeManager(
kb.volumeManager = volumemanager.NewVolumeManager(
true,
kb.nodeName,
kb.podManager,