Skip to content

Commit ebe499e

Browse files
tedyuyutedz
authored andcommitted
Remove variable nodeExpandSet
1 parent 565c88d commit ebe499e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/volume/csi/csi_client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,17 +681,15 @@ func (c *csiDriverClient) NodeSupportsNodeExpand(ctx context.Context) (bool, err
681681

682682
capabilities := resp.GetCapabilities()
683683

684-
nodeExpandSet := false
685684
if capabilities == nil {
686685
return false, nil
687686
}
688687
for _, capability := range capabilities {
689688
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_EXPAND_VOLUME {
690-
nodeExpandSet = true
691689
return true, nil
692690
}
693691
}
694-
return nodeExpandSet, nil
692+
return false, nil
695693
} else if c.nodeV0ClientCreator != nil {
696694
return false, nil
697695
}

0 commit comments

Comments
 (0)