summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-11 00:17:20 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-11 00:17:20 +0200
commit1eff49e1fb24630eb61f6ba0cf90702f90f2f73d (patch)
treea2ef1c9a0d6ab5b9dc1898acbd4a6a8eaedc983b
parenta688a66c4f9cbf1f88052eb32e476d53e158773b (diff)
Refactor synchronized
-rw-r--r--fnl/util.fnl4
1 files changed, 1 insertions, 3 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index a80f0eb..88ec1c3 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -18,9 +18,7 @@
(defn- deep-equal [xs ys] (and (contains xs ys) (contains ys xs)))
-(defn- synchronized [configured installed]
- (and (= (vim.tbl_count configured) (vim.tbl_count installed))
- (deep-equal configured installed)))
+(defn- synchronized [configured installed] (deep-equal configured installed))
(defn- install []
(packer.startup (fn [use]