~subsetpark/bagatto

f9e463ff6eed5abb95baae508a82d5e3b0e9e7e2 — Zach Smith 3 months ago fd3d3dc
Always run parser, even if contents are not available
1 files changed, 2 insertions(+), 4 deletions(-)

M src/loaders.janet
M src/loaders.janet => src/loaders.janet +2 -4
@@ 7,10 7,8 @@

(defn- make-attrs [parser filename &opt file-contents]
  (let [base-attrs @{:path filename :contents file-contents}]
    (if file-contents
      (try (parser file-contents base-attrs)
        ([err fib] (propagate (error/attrs-error err parser) fib)))
      base-attrs)))
    (try (parser file-contents base-attrs)
         ([err fib] (propagate (error/attrs-error err parser) fib)))))

(defn from-file-spec-loader
  ```