Enable more linters, and remove mal-functioned milestoned issue action.

Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
Xun Jiang
2023-04-25 23:31:51 +08:00
parent a0b0b7cd9b
commit 443f732e51
19 changed files with 49 additions and 65 deletions
+4 -4
View File
@@ -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)
}