Skip to content

Commit

Permalink
Fix typo, dont parse ea twice
Browse files Browse the repository at this point in the history
  • Loading branch information
verberktstan authored Jan 31, 2024
1 parent 6aaa44f commit b7f2e57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/swark/eav.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@
(merge-with parse props))))
([props lookup row] ;TODO: Merge lookop into props?
(let [m (parse-row props row)
ea-parser (get lookup :entity/attribute identity)
eaa (juxt (comp ea-parser :entity/attribute) :attribute)
eaa (juxt :entity/attribute :attribute)
value-parser (get lookup (eaa m))]
(cond-> m
ea-parser (update:entity/attribute ea-parser)
value-parser (update :value value-parser)))))

(defn parser
Expand Down

0 comments on commit b7f2e57

Please sign in to comment.