Commit 28c17262 authored by Xiang Li's avatar Xiang Li

pkg/kubelet: minor cleanup in pod_manager.go

parent 864f9b4a
......@@ -215,10 +215,8 @@ func (self *basicPodManager) GetPodByName(namespace, name string) (*api.Pod, boo
func (self *basicPodManager) GetPodByFullName(podFullName string) (*api.Pod, bool) {
self.lock.RLock()
defer self.lock.RUnlock()
if pod, ok := self.podByFullName[podFullName]; ok {
return pod, true
}
return nil, false
pod, ok := self.podByFullName[podFullName]
return pod, ok
}
// If the UID belongs to a mirror pod, maps it to the UID of its static pod.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment