Skip to content

Commit 5679fee

Browse files
committed
fix shellcheck
1 parent 1e7fe41 commit 5679fee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/generate_rediscommandencoder_multi_encode.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ function genWithContextParameter() {
2626

2727
echo " @inlinable"
2828
echo -n " mutating func encodeRESPArray<T0: RESP3BlobStringEncodable"
29-
for ((n = 1; n<$how_many; n +=1)); do
30-
echo -n ", T$(($n)): RESP3BlobStringEncodable"
29+
for ((n = 1; n<how_many; n +=1)); do
30+
echo -n ", T$((n)): RESP3BlobStringEncodable"
3131
done
3232

3333
echo -n ">(_ t0: T0"
34-
for ((n = 1; n<$how_many; n +=1)); do
35-
echo -n ", _ t$(($n)): T$(($n))"
34+
for ((n = 1; n<how_many; n +=1)); do
35+
echo -n ", _ t$((n)): T$((n))"
3636
done
3737
echo ") {"
3838

39-
echo " self.buffer.writeBytes(\"*"$how_many"\\r\\n\".utf8)"
39+
printf " self.buffer.writeBytes(\"*%s\\r\\n\".utf8)\n" "$how_many"
4040

41-
for ((n = 0; n<$how_many; n +=1)); do
42-
echo " t$(($n)).encodeRedisBlobString(into: &self.buffer)"
41+
for ((n = 0; n<how_many; n +=1)); do
42+
echo " t$((n)).encodeRedisBlobString(into: &self.buffer)"
4343
done
4444
echo " }"
4545
}

0 commit comments

Comments
 (0)