Permalink
Browse files

Use String.empty? instead of == ""

  • Loading branch information...
1 parent edff6c0 commit 0bd7b51cbadb2465703322bc07c7367b2a8c88a0 @goonzoid committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cocoapods/generator/acknowledgements/markdown.rb
View
2 lib/cocoapods/generator/acknowledgements/markdown.rb
@@ -13,7 +13,7 @@ def save_as(path)
end
def title_from_string(string)
- if string != ""
+ if !string.empty?
"#{string}\n" + '-' * string.length + "\n"
end
end

0 comments on commit 0bd7b51

Please sign in to comment.