Commits

Zachary Allaun  committed 08bc6fb

Use pos? instead of > 0

  • Participants
  • Parent commits f2ce1f7
  • Tags v0.9.3

Comments (0)

Files changed (1)

File src/lanterna/common.clj

                :or {interval 50
                     timeout Double/POSITIVE_INFINITY}}]
      (loop [timeout timeout]
-       (when (> timeout 0)
+       (when (pos? timeout)
          (let [val (apply func args)]
            (if (nil? val)
              (do (Thread/sleep interval)