Skip to content

Commit bbcc640

Browse files
author
José Valim
committed
Rename Mix.SCM.equals? to Mix.SCM.equal?
1 parent e08bcbe commit bbcc640

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/mix/lib/mix/deps/converger.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ defmodule Mix.Deps.Converger do
9999
Enum.map_reduce list, false, fn(other, diverged) ->
100100
Mix.Dep[app: other_app, scm: other_scm, opts: other_opts] = other
101101

102-
if app != other_app || scm == other_scm && scm.equals?(opts, other_opts) do
102+
if app != other_app || scm == other_scm && scm.equal?(opts, other_opts) do
103103
{ other, diverged }
104104
else
105105
{ other.status({ :diverged, dep }), true }

lib/mix/lib/mix/scm.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ defmodule Mix.SCM do
7777
same repository. The options are guaranteed to belong to the
7878
same SCM.
7979
"""
80-
defcallback equals?(opts1 :: opts, opts2 :: opts) :: boolean
80+
defcallback equal?(opts1 :: opts, opts2 :: opts) :: boolean
8181

8282
@doc """
8383
This behavior function should clean the given dependency.

lib/mix/lib/mix/scm/git.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defmodule Mix.SCM.Git do
3131
end)
3232
end
3333

34-
def equals?(opts1, opts2) do
34+
def equal?(opts1, opts2) do
3535
get_lock(opts1, false) == get_lock(opts2, false)
3636
end
3737

lib/mix/lib/mix/scm/path.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Mix.SCM.Path do
2424
true
2525
end
2626

27-
def equals?(opts1, opts2) do
27+
def equal?(opts1, opts2) do
2828
opts1[:dest] == opts2[:dest]
2929
end
3030

0 commit comments

Comments
 (0)