Commits

Anonymous committed 08bc6fb

Use pos? instead of > 0

Comments (0)

Files changed (1)

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)