Return to Snippet

Revision: 13912
at May 12, 2009 05:52 by kungfoo


Initial Code
if (!check_part(baz)) then
  # do something
end

def check_part(foo)
  if (foo) then
    return true
  else
    return false
  end
end


# why not just write this:
unless baz
  # do something
end

Initial URL

                                

Initial Description
WTF!

Initial Title
Redundant boolean logic 1.0

Initial Tags

                                

Initial Language
Ruby