Skip to content

Commit 4de1ef3

Browse files
committed
Reformat
1 parent 53eae3e commit 4de1ef3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/xitdb/util/conversion.clj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{:keyword "kw"
3232
:boolean "bl"
3333
:key-integer "ki"
34-
:nil "nl" ;; TODO: Could use Tag/NONE instead
34+
:nil "nl" ;; TODO: Could use Tag/NONE instead
3535
:inst "in"
3636
:date "da"})
3737

@@ -175,14 +175,14 @@
175175
[k]
176176
(cond
177177
(integer? k)
178-
(database-bytes (str k) "ki") ;integer keys are stored as strings with 'ki' format tag
178+
(database-bytes (str k) "ki") ;integer keys are stored as strings with 'ki' format tag
179179
:else
180180
(primitive-for k)))
181181

182182
(defn read-bytes-with-format-tag [^ReadCursor cursor]
183183
(let [bytes-obj (.readBytesObject cursor nil)
184-
str (String. (.value bytes-obj))
185-
fmt-tag (some-> bytes-obj .formatTag String.)]
184+
str (String. (.value bytes-obj))
185+
fmt-tag (some-> bytes-obj .formatTag String.)]
186186
(cond
187187

188188
(= fmt-tag (fmt-tag-value :keyword))
@@ -270,7 +270,7 @@
270270
(doseq [[k v] m]
271271
(let [hash-value (db-key-hash (-> cursor .db) k)
272272
key-cursor (.putKeyCursor whm hash-value)
273-
cursor (.putCursor whm hash-value)]
273+
cursor (.putCursor whm hash-value)]
274274
(.writeIfEmpty key-cursor (v->slot! key-cursor k))
275275
(.write cursor (v->slot! cursor v))))
276276
(.-cursor whm)))
@@ -280,9 +280,9 @@
280280
Returns the cursor of the created WriteHashSet."
281281
[^WriteCursor cursor s]
282282
(let [whm (WriteCountedHashSet. cursor)
283-
db (-> cursor .db)]
283+
db (-> cursor .db)]
284284
(doseq [v s]
285285
(let [hash-code (db-key-hash db v)
286-
cursor (.putCursor whm hash-code)]
286+
cursor (.putCursor whm hash-code)]
287287
(.writeIfEmpty cursor (v->slot! cursor v))))
288288
(.-cursor whm)))

0 commit comments

Comments
 (0)