Skip to content

Commit 261f40a

Browse files
committed
Removed an occurance of SC2034
1 parent dd41e95 commit 261f40a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/service-url-include.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ json_route_path='{.spec.path}'
2323
json_route_tls='{.spec.tls.termination}'
2424

2525
function get_k8s_info {
26-
local namespace object jsonpath info rc
26+
local namespace object jsonpath info
2727

2828
namespace=$1
2929
object=$2
3030
jsonpath=$3
3131

3232
info=$(kubectl -n "$namespace" get "$object" -o=jsonpath="$jsonpath" 2> /dev/null)
33-
rc=$?
3433

3534
if [ -n "$info" ]; then
3635
echo "$info"
@@ -60,8 +59,7 @@ function get_ingress_ports {
6059
}
6160

6261
function get_ingress_url {
63-
# shellcheck disable=SC2034
64-
local namespace name host path tls_info rc port porttxt protocol
62+
local namespace name host path tls_info port porttxt protocol
6563

6664
namespace=$1
6765
name=$2

0 commit comments

Comments
 (0)