Skip to content

Commit 9072965

Browse files
author
José Valim
committed
Merge pull request #2633 from lexmag/not-match
Use `not` instead of `!` in `IO.ANSI.enabled?/0`
2 parents 3e256fc + 171e9b3 commit 9072965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/io/ansi.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defmodule IO.ANSI do
3939
def enabled? do
4040
case Application.fetch_env(:elixir, :ansi_enabled) do
4141
{:ok, boolean} when is_boolean(boolean) -> boolean
42-
:error -> !match?({:win32, _}, :os.type())
42+
:error -> not match?({:win32, _}, :os.type())
4343
end
4444
end
4545

0 commit comments

Comments
 (0)