Skip to content

Commit

Permalink
OTWO-4466 Set the branch_name as nil if empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Rani committed Dec 27, 2016
1 parent ec65be8 commit 399366d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/ohloh_scm/adapters/hg_adapter.rb
@@ -1,9 +1,13 @@
module OhlohScm::Adapters
class HgAdapter < AbstractAdapter
def english_name
"Mercurial"
end
end
class HgAdapter < AbstractAdapter
def english_name
"Mercurial"
end

def branch_name=(branch_name)
@branch_name = branch_name.to_s.empty? ? nil : branch_name
end
end
end

require_relative 'hg/validation'
Expand Down

0 comments on commit 399366d

Please sign in to comment.