Skip to content

constant-test in 'manifold.deferred/let-flow' #197

@NeilMenne

Description

@NeilMenne

In this particular case, it has to do with async ring middleware, but it looks kinda like:

(defn wrap-middlewarez
  [handler]
  (fn [request]
    (let-flow [response (handler request)]
      (cond (exceptional? response) {:status 500 :body "my b"}
            (empty? response)       {:status 204}
            :else                   {:body response}))))

I get an error like: constant-test: Test expression is always logical true or always logical false: :else in form (if :else {:body response} nil).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions