Skip to content

Commit

Permalink
remove unnecessary variable 'export' on variable _H4
Browse files Browse the repository at this point in the history
  • Loading branch information
vmmello committed Nov 7, 2024
1 parent 7b63ebf commit 4f96a2a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dnsapi/dns_linode_v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ _rest() {
export _H1="Accept: application/json"
export _H2="Content-Type: application/json"
export _H3="Authorization: Bearer $LINODE_V4_API_KEY"
export _H4 # used to query for the root domain on _get_root()

if [ "$mtd" != "GET" ]; then
# both POST and DELETE.
Expand All @@ -192,10 +191,6 @@ _rest() {
response="$(_get "$LINODE_V4_API_URL$ep$data")"
fi

# unset _H4, for it not to be used on every request unnecessarily, because it
# causes random failures inside Linode API when using unnecessary _H4 parameters (e.g. X-Filter)
unset _H4

if [ "$?" != "0" ]; then
_err "error $ep"
return 1
Expand Down

0 comments on commit 4f96a2a

Please sign in to comment.