Commit 6cd9826e authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

HgGitRepository: complying to the 'return nil' cop

Too bad if I personally consider it better style to make that
we're return nil explicit in case of methods actually
expected to return something (clear intent, and
nicer to people not used to the language).

--HG--
branch : heptapod-stable
parent 31146d7c450d
......@@ -279,13 +279,13 @@ def git_sha_map
end
def sha_from_hgsha(hgsha)
return nil unless exists?
return unless exists?
git_sha_map[hgsha]
end
def hgsha_from_sha(sha)
return nil unless exists?
return unless exists?
hg_sha_map[sha]
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment