Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
daslu committed Nov 27, 2021
1 parent 176ca3e commit 8d453eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scicloj/notespace/v4/merge.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
[scicloj.notespace.v4.diff :as v4.diff]
[scicloj.notespace.v4.note :as v4.note]))

(defn ->read-context [note]
(select-keys note [:region :source]))

(defn merge-notes [old-notes new-notes]
(v4.diff/diff-by-function (or old-notes [])
new-notes
(juxt :source :region)))

(defn ->read-context [note]
(select-keys note [:region :source]))
->read-context))

(defn start-line [read-context]
(-> read-context :region first))
Expand Down

0 comments on commit 8d453eb

Please sign in to comment.