Commits

Michael Klishin  committed f49aa18

clojure.core/format is a great fit here

  • Participants
  • Parent commits 76c089a

Comments (0)

Files changed (1)

File metrics-clojure-core/src/metrics/utils.clj

 
 (defn all-metrics []
   (letfn [(parse-name [^MetricName metric-name]
-            (str (.getGroup metric-name)
-                 "." (.getType metric-name)
-                 "." (.getName metric-name)))
+            (format "%s.%s.%s"
+                    (.getGroup metric-name)
+                    (.getType metric-name)
+                    (.getName metric-name)))
           (parse-entry [[metric-name metric]]
             [(parse-name metric-name)
              metric])]