Skip to content

Commit d3b854d

Browse files
committed
refactor: add docstring to repository? and fix arg order
- Moved argument vector before docstring in repository? defn for idiomatic Clojure style. - Ensured docstring clearly explains its purpose, following project convention. Signed-off-by: Avelino <[email protected]>
1 parent c6e92b8 commit d3b854d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/chrondb/storage/git/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@
101101
nil)))
102102

103103

104-
(defn repository? [storage]
104+
(defn repository?
105105
"Returns true if the storage contains a valid JGit Repository instance.
106106
Useful for validating storage before performing repository-backed operations."
107+
[storage]
107108
(instance? org.eclipse.jgit.lib.Repository (:repository storage)))
108109

109110

0 commit comments

Comments
 (0)