Skip to content

Commit

Permalink
[check-size] SC2004: $/${} is unnecessary on arithmetic variables (
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Oct 11, 2024
1 parent bd1ffd6 commit f3715b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/check-size
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ generate_size_diff()
local -a size_diff

for i in 0 1 2 3; do
size_diff[$i]="$((size_new["$i"] - size_old["$i"]))"
if [[ ${size_diff["$i"]} != 0 ]]; then
size_diff["$i"]=$(printf '%+d' "${size_diff["$i"]}")
size_diff[i]="$((size_new[i] - size_old[i]))"
if [[ ${size_diff[i]} != 0 ]]; then
size_diff[i]=$(printf '%+d' "${size_diff[i]}")
fi
done

Expand Down

0 comments on commit f3715b4

Please sign in to comment.