Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit cdc85dc

Browse files
authored
Merge pull request #476 from xichengliudui/fix181113
Delete the redundant code
2 parents 1db55bb + df4b372 commit cdc85dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/scheduler/cache/event_handlers.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,8 @@ func (sc *SchedulerCache) AddPod(obj interface{}) {
167167
glog.Errorf("Failed to add pod <%s/%s> into cache: %v",
168168
pod.Namespace, pod.Name, err)
169169
return
170-
} else {
171-
glog.V(3).Infof("Added pod <%s/%v> into cache.", pod.Namespace, pod.Name)
172170
}
171+
glog.V(3).Infof("Added pod <%s/%v> into cache.", pod.Namespace, pod.Name)
173172
return
174173
}
175174

0 commit comments

Comments
 (0)