aroemers / mount-lite

mount, but different and light
https://cljdoc.org/d/functionalbytes/mount-lite/
Eclipse Public License 1.0
102 stars 8 forks source link

Allow :start to be specified with a falsy value #20

Closed robhanlon22 closed 4 years ago

robhanlon22 commented 4 years ago

Currently, this fails

(defstate check?
  :start false)

due to the falsy check here https://github.com/aroemers/mount-lite/blob/2.x/src/mount/lite.clj#L110. This simple fix uses a contains? check instead.

This is useful when using particular substitutes in say a test environment.

aroemers commented 4 years ago

Hi Rob,

Thank you for the PR! It has been merged and released as version 2.1.5.

robhanlon22 commented 4 years ago

Thank you!