(hasNode bool, nodeName string, current *api.Node)
| 99 | } |
| 100 | |
| 101 | func shouldRestoreNodeSelection(hasNode bool, nodeName string, current *api.Node) bool { |
| 102 | if !hasNode { |
| 103 | return false |
| 104 | } |
| 105 | if current == nil { |
| 106 | return true |
| 107 | } |
| 108 | |
| 109 | return current.Name == nodeName |
| 110 | } |
no outgoing calls