[Source]
# File lib/nitpick/warnings/identical_branch.rb, line 5 def initialize(*args) @cond, @yes_branch, @no_branch = args end
# File lib/nitpick/warnings/identical_branch.rb, line 9 def matches? yes_branch == no_branch end
# File lib/nitpick/warnings/identical_branch.rb, line 13 def message "The branches of 'if (#{sexp_to_ruby(@cond)})' are identical." end
[Validate]