mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
code cleanup: Omit redundant nil check on slices
This commit is contained in:
@@ -380,9 +380,9 @@ func (plugin *FakeVolumePlugin) NewDetacher() (Detacher, error) {
|
||||
plugin.NewDetacherCallCount = plugin.NewDetacherCallCount + 1
|
||||
detacher := plugin.getFakeVolume(&plugin.Detachers)
|
||||
attacherList := plugin.Attachers
|
||||
if attacherList != nil && len(attacherList) > 0 {
|
||||
if len(attacherList) > 0 {
|
||||
detacherList := plugin.Detachers
|
||||
if detacherList != nil && len(detacherList) > 0 {
|
||||
if len(detacherList) > 0 {
|
||||
detacherList[0].VolumesAttached = attacherList[0].VolumesAttached
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user