mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: address wasted assign issues
At places variable is reassigned without being used. Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -794,7 +794,7 @@ func (cs *ControllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateS
|
||||
}
|
||||
}()
|
||||
|
||||
ready := false
|
||||
var ready bool
|
||||
var vol = new(rbdVolume)
|
||||
|
||||
ready, vol, err = cs.doSnapshotClone(ctx, rbdVol, rbdSnap, cr)
|
||||
|
@ -168,7 +168,7 @@ func (vc *vaultConnection) initConnection(config map[string]interface{}) error {
|
||||
return err
|
||||
}
|
||||
if firstInit || !errors.Is(err, errConfigOptionMissing) {
|
||||
vaultCAVerify := false
|
||||
var vaultCAVerify bool
|
||||
vaultCAVerify, err = strconv.ParseBool(verifyCA)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse 'vaultCAVerify': %w", err)
|
||||
|
Reference in New Issue
Block a user