Skip to content

Commit

Permalink
Improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigitsu committed Jul 25, 2024
1 parent ca7a286 commit 5f77568
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tailwind.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ defmodule Tailwind do
"""
def configured_version do
default_version =
with path when not is_nil(path) <- Application.get_env(:tailwind, :path),
{:ok, default_version} <- bin_version() do
default_version
with false <- :tailwind |> Application.get_env(:path) |> is_nil, {:ok, version} <- bin_version() do
version
else
_ -> latest_version()
end
Expand Down

0 comments on commit 5f77568

Please sign in to comment.