Skip to content

Commit 3837f8c

Browse files
Apply suggestions from code review
Co-authored-by: Eksperimental <eksperimental@autistici.org>
1 parent 39e908b commit 3837f8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mix/lib/mix/dep.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ defmodule Mix.Dep do
536536
end
537537

538538
@doc """
539-
Returns `true` if dependency is a Gleam project.
539+
Returns `true` if dependency is a Gleam project; otherwise returns `false`.
540540
"""
541541
def gleam?(%Mix.Dep{manager: manager}) do
542542
manager == :gleam

lib/mix/lib/mix/gleam.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ defmodule Mix.Gleam do
7272
defp maybe_erlang_opts(config, opts) do
7373
application =
7474
opts
75-
|> Enum.filter(fn {_, value} -> value != nil end)
75+
|> Enum.reject(fn {_, value} -> value == nil end)
7676
|> Enum.map(fn
7777
{"application_start_module", module} when is_binary(module) ->
7878
{:mod, {String.to_atom(module), []}}

0 commit comments

Comments
 (0)