Skip to content

Commit 3ba2872

Browse files
committed
jshn.sh: Minor cleanup
Signed-off-by: Philip Prindeville <[email protected]>
1 parent 1c024e5 commit 3ba2872

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sh/jshn.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ json_dump() {
269269
}
270270

271271
json_get_type() {
272+
# target=$2
272273
local __dest="$1"
273274
local __cur
274275

@@ -338,11 +339,11 @@ json_select() {
338339
local type
339340
local cur
340341

341-
[ -z "$1" ] && {
342+
[ -z "$target" ] && {
342343
_json_set_var JSON_CUR "J_V"
343344
return 0
344345
}
345-
[[ "$1" == ".." ]] && {
346+
[[ "$target" == ".." ]] && {
346347
_json_get_var cur JSON_CUR
347348
_json_get_var cur "U_$cur"
348349
_json_set_var JSON_CUR "$cur"
@@ -363,6 +364,8 @@ json_select() {
363364
}
364365

365366
json_is_a() {
367+
# target=$1
368+
# type=$2
366369
local type
367370

368371
json_get_type type "$1"

0 commit comments

Comments
 (0)