Skip to content

Commit

Permalink
Merge pull request #3 from kwando/patch-1
Browse files Browse the repository at this point in the history
Logic error when checking for symbolized keys
  • Loading branch information
odlp committed Jul 29, 2016
2 parents fa169d1 + 1d807dd commit 0b8cb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplify_rb.rb
Expand Up @@ -7,7 +7,7 @@ def self.simplify (points, tolerance=1, highest_quality=false)

return points if points.length <= 1

points = symbolize_keys(points) unless keys_are_symbols?(points.map(&:keys))
points = symbolize_keys(points) unless points.all? { |p| keys_are_symbols?(p.keys) }

sq_tolerance = tolerance * tolerance

Expand Down

0 comments on commit 0b8cb94

Please sign in to comment.