Skip to content
Snippets Groups Projects
Commit 7b0f3993 authored by Simon Belak's avatar Simon Belak
Browse files

Don't calculate specificity too soon

parent 42a0de55
No related branches found
No related tags found
No related merge requests found
......@@ -291,10 +291,11 @@
.toUri
slurp
yaml/parse-string
(assoc :rule entity-type)
(assoc :rule entity-type
:specificity 0)
(update :applies_to #(or % entity-type))
(as-> rule (assoc rule :specificity (specificity rule)))
rules-validator))
rules-validator
(as-> rule (assoc rule :specificity (specificity rule)))))
(catch Exception e
(log/errorf (trs "Error parsing %s:\n%s")
(.getFileName f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment