Browse Source

graph/build-nodes: Remove redundant `let`

Moritz Ulrich 3 years ago
parent
commit
14a87b72b8
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/main/frontend/handler/graph.cljs

+ 11 - 11
src/main/frontend/handler/graph.cljs

@@ -38,18 +38,18 @@
                            [true true]   "#ffffff")
                    color (if (contains? tags p)
                            (if dark? "orange" "green")
-                           color)]
-               (let [n (get page-links p 1)
-                     size (int (* 8 (max 1.0 (js/Math.cbrt n))))]
-                 (cond->
-                   {:id p
-                    :label p
-                    :size size
-                    :color color}
-                   (contains? parents p)
-                   (assoc :parent true)))))))))
+                           color)
+                   n (get page-links p 1)
+                   size (int (* 8 (max 1.0 (js/Math.cbrt n))))]
+                (cond->
+                  {:id p
+                   :label p
+                   :size size
+                   :color color}
+                  (contains? parents p)
+                  (assoc :parent true))))))))
 
-;; slow
+                  ;; slow
 (defn- uuid-or-asset?
   [id]
   (or (util/uuid-string? id)