Ad
Code
Diff
  • def verify_sum(a, b)
      return false if a.nil? || b.nil?
      
      a.sum == b.sum
    end
    
    • def verify_sum(a, b)
    • return a.sum == b.sum unless a.nil? || b.nil?
    • 'a' == 'b'
    • return false if a.nil? || b.nil?
    • a.sum == b.sum
    • end