From 0699305121b176a030aa4d9426ad9f7ee06a8028 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 26 Sep 2016 23:23:47 +0200 Subject: [PATCH] revert brainless changes --- lib/pure/asyncfutures.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/asyncfutures.nim b/lib/pure/asyncfutures.nim index 57114bf7a5..fda78c1a11 100644 --- a/lib/pure/asyncfutures.nim +++ b/lib/pure/asyncfutures.nim @@ -24,7 +24,7 @@ type when not defined(release): var currentID = 0 -proc callSoon*(cbproc: proc ()) {.gcsafe.} = discard +proc callSoon*(cbproc: proc ()) {.gcsafe.} proc newFuture*[T](fromProc: string = "unspecified"): Future[T] = ## Creates a new future. @@ -55,7 +55,7 @@ proc clean*[T](future: FutureVar[T]) = proc checkFinished[T](future: Future[T]) = ## Checks whether `future` is finished. If it is then raises a ## ``FutureError``. - when not defined(release) and false: + when not defined(release): if future.finished: var msg = "" msg.add("An attempt was made to complete a Future more than once. ")