mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-26 01:44:19 +00:00
Enable more linters, and remove mal-functioned milestoned issue action.
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
@@ -111,13 +111,13 @@ func deleteNodePorts(service *corev1api.Service) error {
|
||||
}
|
||||
if nodePortBool {
|
||||
nodePortInt := 0
|
||||
switch nodePort.(type) {
|
||||
switch nodePort := nodePort.(type) {
|
||||
case int32:
|
||||
nodePortInt = int(nodePort.(int32))
|
||||
nodePortInt = int(nodePort)
|
||||
case float64:
|
||||
nodePortInt = int(nodePort.(float64))
|
||||
nodePortInt = int(nodePort)
|
||||
case string:
|
||||
nodePortInt, err = strconv.Atoi(nodePort.(string))
|
||||
nodePortInt, err = strconv.Atoi(nodePort)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user