mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #15472 from zhengguoyong/del_unnessary_var_definition
Auto commit by PR queue bot
This commit is contained in:
commit
02dd86c136
@ -164,8 +164,7 @@ func (kl *Kubelet) getPodVolumes(podUID types.UID) ([]*volumeTuple, error) {
|
|||||||
if volumeNameDir != nil {
|
if volumeNameDir != nil {
|
||||||
volumes = append(volumes, &volumeTuple{Kind: volumeKind, Name: volumeNameDir.Name()})
|
volumes = append(volumes, &volumeTuple{Kind: volumeKind, Name: volumeNameDir.Name()})
|
||||||
} else {
|
} else {
|
||||||
lerr := volumeNameDirsStat[i]
|
glog.Errorf("Could not read directory %s: %v", podVolDir, volumeNameDirsStat[i])
|
||||||
glog.Errorf("Could not read directory %s: %v", podVolDir, lerr)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user