Skip to content

Commit 7e51726

Browse files
Papipoeksperimental
andcommitted
Apply suggestions from code review
Co-authored-by: Eksperimental <eksperimental@autistici.org>
1 parent 46aa2d6 commit 7e51726

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
@@ -556,7 +556,7 @@ defmodule Mix.Dep do
556556
end
557557

558558
@doc """
559-
Returns `true` if dependency is a Gleam project.
559+
Returns `true` if dependency is a Gleam project; otherwise returns `false`.
560560
"""
561561
def gleam?(%Mix.Dep{manager: manager}) do
562562
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)