From 1ce9a14ba69c593bb40998a5a49d3f066a4aa07a Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 12 Mar 2019 22:57:06 +0000 Subject: Remove unnecessary `let _ =` from Gleam --- gen/bool.erl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gen/bool.erl') diff --git a/gen/bool.erl b/gen/bool.erl index 8b9c1c4..01c81ce 100644 --- a/gen/bool.erl +++ b/gen/bool.erl @@ -15,9 +15,9 @@ max(A, B) -> -ifdef(TEST). max_test() -> - _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, true)), - _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, false)), - _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(max(false, false)), + (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, true)), + (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, false)), + (fun(Capture1) -> expect:equal(Capture1, false) end)(max(false, false)), (fun(Capture1) -> expect:equal(Capture1, true) end)(max(false, true)). -endif. @@ -32,9 +32,9 @@ min(A, B) -> -ifdef(TEST). min_test() -> - _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(min(true, true)), - _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(min(true, false)), - _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(min(false, false)), + (fun(Capture1) -> expect:equal(Capture1, true) end)(min(true, true)), + (fun(Capture1) -> expect:equal(Capture1, false) end)(min(true, false)), + (fun(Capture1) -> expect:equal(Capture1, false) end)(min(false, false)), (fun(Capture1) -> expect:equal(Capture1, false) end)(min(false, true)). -endif. @@ -49,6 +49,6 @@ to_int(Bool) -> -ifdef(TEST). to_int_test() -> - _ = (fun(Capture1) -> expect:equal(Capture1, 1) end)(to_int(true)), + (fun(Capture1) -> expect:equal(Capture1, 1) end)(to_int(true)), (fun(Capture1) -> expect:equal(Capture1, 0) end)(to_int(false)). -endif. -- cgit v1.2.3