pkg/kubelet: minor cleanup in pod_manager.go

This commit is contained in:
Xiang Li 2015-04-14 18:30:47 -07:00
parent 864f9b4a8a
commit 28c1726232

View File

@ -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.