Remove useless bash conditional

bash just returns the last return code, why are we testing and then
doing the same?
pull/6/head
Eric Paris 2015-05-08 12:22:07 -04:00
parent 86e347ffc3
commit d28660ae49
2 changed files with 0 additions and 6 deletions

View File

@ -174,9 +174,6 @@ __kubectl_get_resource()
return 1
fi
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
if [[ $? -eq 0 ]]; then
return 0
fi
}
# $1 is the name of the pod we want to get the list of containers inside

View File

@ -45,9 +45,6 @@ __kubectl_get_resource()
return 1
fi
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
if [[ $? -eq 0 ]]; then
return 0
fi
}
# $1 is the name of the pod we want to get the list of containers inside