Skip to content

Commit 3cdc613

Browse files
committed
chore: update comments
1 parent d4e8cfb commit 3cdc613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,9 @@ exports.getKeyIndexes = function (commandName, args, options) {
133133
break
134134
case 'xreadgroup':
135135
case 'xread':
136-
// keys are 1st half of the args after STREAMS argument
136+
// Keys are 1st half of the args after STREAMS argument.
137137
for (i = commandName === 'xread' ? 0 : 3; i < args.length - 1; i++) {
138138
if (String(args[i]).toUpperCase() === 'STREAMS') {
139-
140139
for (j = i + 1; j <= i + ((args.length - 1 - i) / 2); j++) {
141140
keys.push(j)
142141
}
@@ -145,7 +144,8 @@ exports.getKeyIndexes = function (commandName, args, options) {
145144
}
146145
break
147146
default:
148-
// step has to be at least one in this case, otherwise the command does not contain a key
147+
// Step has to be at least one in this case, otherwise the command does
148+
// not contain a key.
149149
if (command.step > 0) {
150150
keyStart = command.keyStart - 1
151151
keyStop = command.keyStop > 0 ? command.keyStop : args.length + command.keyStop + 1

0 commit comments

Comments
 (0)