diff options
author | Eduardo Julian | 2020-12-02 20:37:13 -0400 |
---|---|---|
committer | Eduardo Julian | 2020-12-02 20:37:13 -0400 |
commit | 28c724857d76afdc40b5b036f415cc151eb66263 (patch) | |
tree | 3e970ca2a10dd7bb5c7ddd405349762945464d39 /stdlib/source/lux/world/file/watch.lux | |
parent | 34e310622bdeb1d0588c0664c0e78cbaa84f837c (diff) |
Replaced "contains?" function with "key?" function.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/world/file/watch.lux | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stdlib/source/lux/world/file/watch.lux b/stdlib/source/lux/world/file/watch.lux index a1bb5a6de..5d995bbd4 100644 --- a/stdlib/source/lux/world/file/watch.lux +++ b/stdlib/source/lux/world/file/watch.lux @@ -147,8 +147,7 @@ (do {! (try.with promise.monad)} [current-files (..poll-files directory file-tracker) #let [creations (if (..creation? concern) - (list.filter (function (_ [path file last-modified]) - (not (dictionary.contains? path file-tracker))) + (list.filter (|>> product.left (dictionary.key? file-tracker) not) current-files) (list)) available (|> current-files |