Skip to content

Commit

Permalink
Switch GitCredential equality to use ==
Browse files Browse the repository at this point in the history
Originally used `isequal` to deal with `Nullable`
  • Loading branch information
omus committed May 31, 2018
1 parent 02bff65 commit 3818ace
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stdlib/LibGit2/src/gitcredential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function shred!(cred::GitCredential)
end

function Base.:(==)(a::GitCredential, b::GitCredential)
isequal(a.protocol, b.protocol) &&
isequal(a.host, b.host) &&
isequal(a.path, b.path) &&
isequal(a.username, b.username) &&
isequal(a.password, b.password) &&
a.protocol == b.protocol &&
a.host == b.host &&
a.path == b.path &&
a.username == b.username &&
a.password == b.password &&
a.use_http_path == b.use_http_path
end

Expand Down

0 comments on commit 3818ace

Please sign in to comment.