Skip to content

Commit 980bfe8

Browse files
committed
Fix docstring in wrong position and unused binding in linked-array-list-remove-value
1 parent 53b83c3 commit 980bfe8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/xitdb/linked_list.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[io.github.radarroark.xitdb ReadCursor ReadLinkedArrayList WriteCursor WriteLinkedArrayList]))
88

99
(defn array-seq
10-
[^ReadLinkedArrayList rlal]
1110
"The cursors used must implement the IReadFromCursor protocol."
11+
[^ReadLinkedArrayList rlal]
1212
(operations/linked-array-seq rlal #(common/-read-from-cursor %)))
1313

1414
(deftype XITDBLinkedArrayList [^ReadLinkedArrayList rlal]

src/xitdb/util/operations.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@
9191
(defn linked-array-list-remove-value!
9292
"Removes a value at position pos in a WriteLinkedArrayList."
9393
[^WriteLinkedArrayList wlal pos]
94-
(let [cursor (-> wlal .cursor)]
95-
(.remove wlal pos))
94+
(.remove wlal pos)
9695
wlal)
9796

9897
(defn linked-array-list-pop!

0 commit comments

Comments
 (0)