summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/src/elixir.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/src/elixir.erl b/lib/elixir/src/elixir.erl
index b2eca2c8c..7f8d5c73d 100644
--- a/lib/elixir/src/elixir.erl
+++ b/lib/elixir/src/elixir.erl
@@ -60,7 +60,7 @@ start(_Type, _Args) ->
{ok, _} -> ok;
undefined ->
%% Remove prim_tty module check as well as checks from scripts on Erlang/OTP 26
- ANSIEnabled = erlang:module_loaded(prim_tty) andalso prim_tty:isatty(stdout),
+ ANSIEnabled = erlang:module_loaded(prim_tty) andalso (prim_tty:isatty(stdout) == true),
application:set_env(elixir, ansi_enabled, ANSIEnabled)
end,