Skip to content

Commit 560a003

Browse files
stevengjtkelman
authored andcommitted
use === for comparison to nothing
1 parent 7e92cca commit 560a003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/pkg/git.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ const GITHUB_REGEX =
111111
function set_remote_url(url::AbstractString; remote::AbstractString="origin", dir="")
112112
run(`config remote.$remote.url $url`, dir=dir)
113113
m = match(GITHUB_REGEX,url)
114-
m == nothing && return
114+
m === nothing && return
115115
push = "[email protected]:$(m.captures[1]).git"
116116
push != url && run(`config remote.$remote.pushurl $push`, dir=dir)
117117
end
118118

119119
function normalize_url(url::AbstractString)
120120
m = match(GITHUB_REGEX,url)
121-
m == nothing ? url : "git://github.com/$(m.captures[1]).git"
121+
m === nothing ? url : "git://github.com/$(m.captures[1]).git"
122122
end
123123

124124
end # module

0 commit comments

Comments
 (0)