Permalink
Browse files

Implement @KL-7's suggestion to cut down a few lines.

  • Loading branch information...
1 parent 5cf58c1 commit d2c9538417ef22c25ca517d162995958459bb28f @timothyandrew timothyandrew committed Apr 8, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/shared/unicode_data.rb
@@ -13,12 +13,7 @@ def for_code_point(code_point)
range.cover? code_point.to_i(16)
end
- #Grab the target yml
- if target
- return TwitterCldr.resources.resource_for("unicode_data", target.first)[code_point.to_sym]
- else
- return nil
- end
+ TwitterCldr.resources.resource_for("unicode_data", target.first)[code_point.to_sym] if target
end
end
end

0 comments on commit d2c9538

Please sign in to comment.