Commit 0bd7b51c authored by Will Pragnell's avatar Will Pragnell

Use String.empty? instead of == ""

parent edff6c05
...@@ -13,7 +13,7 @@ module Pod ...@@ -13,7 +13,7 @@ module Pod
end end
def title_from_string(string) def title_from_string(string)
if string != "" if !string.empty?
"#{string}\n" + '-' * string.length + "\n" "#{string}\n" + '-' * string.length + "\n"
end end
end 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