Fix a typo 'the the' -> 'the'

Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
This commit is contained in:
Zhou Hao 2020-01-02 11:02:52 +08:00
parent e0f9c358bb
commit c5214a3762
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ func reconcileTasks(nodes []corev1.Node, tasks *operatorv1.RuntimeTaskList) *tas
matchMap[x.Name] = newTaskGroupChildProxy(&x) matchMap[x.Name] = newTaskGroupChildProxy(&x)
} }
// Match the the current Task with desired Task (1 for each node in scope). // Match the current Task with desired Task (1 for each node in scope).
for _, t := range tasks.Items { for _, t := range tasks.Items {
// in case a current task has a corresponding desired task, match them // in case a current task has a corresponding desired task, match them
// NB. if there are more that one match, we track this, but this is an inconsistency // NB. if there are more that one match, we track this, but this is an inconsistency

View File

@ -69,7 +69,7 @@ func reconcileTaskGroups(desired *operatorv1.RuntimeTaskGroupList, current *oper
matchMap[desiredTaskGroup.Name] = newTaskGroupReconcileItem(&desiredTaskGroup, nil) matchMap[desiredTaskGroup.Name] = newTaskGroupReconcileItem(&desiredTaskGroup, nil)
} }
// Match the the current child objects (TaskGroup) with desired objects (desired TaskGroup). // Match the current child objects (TaskGroup) with desired objects (desired TaskGroup).
for _, taskGroup := range current.Items { for _, taskGroup := range current.Items {
currentTaskGroup := taskGroup // copies the TaskGroup to a local variable in order to avoid it to get overridden at the next iteration currentTaskGroup := taskGroup // copies the TaskGroup to a local variable in order to avoid it to get overridden at the next iteration
// in case a current objects has a corresponding desired object, match them // in case a current objects has a corresponding desired object, match them