aboutsummaryrefslogtreecommitdiff
path: root/gen/bool.erl
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-03-12 22:57:06 +0000
committerLouis Pilfold <louis@lpil.uk>2019-03-12 23:00:55 +0000
commit1ce9a14ba69c593bb40998a5a49d3f066a4aa07a (patch)
tree0a2767779f94f7f81738c6b35a2499e36718c736 /gen/bool.erl
parentd445ce0d0c57f1acbc33e081c015750c78401067 (diff)
downloadgleam_stdlib-1ce9a14ba69c593bb40998a5a49d3f066a4aa07a.tar.gz
gleam_stdlib-1ce9a14ba69c593bb40998a5a49d3f066a4aa07a.zip
Remove unnecessary `let _ =` from Gleam
Diffstat (limited to 'gen/bool.erl')
-rw-r--r--gen/bool.erl14
1 files changed, 7 insertions, 7 deletions
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.