Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d2c9538417ef22c25ca517d162995958459bb28f 1 parent 5cf58c1
@timothyandrew timothyandrew authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/shared/unicode_data.rb
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.