Skip to content

Commit 928f5a6

Browse files
author
Nilanshu Sharma
committed
Removing unused variable
Signed-off-by: Nilanshu Sharma <[email protected]>
1 parent bbad2eb commit 928f5a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/Valkey/Commands/Custom/ListCustomCommands.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public struct ListPopResponse: RESPTokenDecodable, Sendable, Hashable {
100100
self._elements = nil
101101
case .array(let array):
102102
self._element = nil
103-
let decodedElements = try array.decode(as: [ByteBuffer].self)
104-
self._elements = decodedElements
103+
self._elements = try array.decode(as: [ByteBuffer].self)
105104
default:
106105
throw RESPDecodeError.tokenMismatch(expected: [.null, .bulkString, .array], token: token)
107106
}

0 commit comments

Comments
 (0)