Skip to content

Commit 1e787c0

Browse files
committed
chore: change comment
1 parent 862bc61 commit 1e787c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sqids

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ to_id() {
641641
local id_chars=()
642642

643643
while true; do
644-
id_chars=("${alphabet:$((num % ${#alphabet})):1}" "${id_chars[@]+"${id_chars[@]}"}") # it can be "${id_chars[@]}" without `set -u`, workaround for bash 4.0.0
644+
id_chars=("${alphabet:$((num % ${#alphabet})):1}" "${id_chars[@]+"${id_chars[@]}"}") # it can be "${id_chars[@]}" without `set -u`, workaround for bash 4.0
645645
num=$((num / ${#alphabet}))
646646
if [[ $num -eq 0 ]]; then
647647
break
@@ -1096,7 +1096,7 @@ main() {
10961096
case "$mode" in
10971097
"encode")
10981098
if $flag_a || $flag_b; then
1099-
encode -a "$alphabet" -b "${filtered_blocklist[*]+"${filtered_blocklist[*]}"}" -l "$min_length" "$@" # it can be "${filtered_blocklist[*]}" without `set -u`, workaround for bash 4.0.0
1099+
encode -a "$alphabet" -b "${filtered_blocklist[*]+"${filtered_blocklist[*]}"}" -l "$min_length" "$@" # it can be "${filtered_blocklist[*]}" without `set -u`, workaround for bash 4.0
11001100
else
11011101
encode -a "$alphabet" -b "${block_list[*]}" -l "$min_length" "$@"
11021102
fi

0 commit comments

Comments
 (0)