Permalink
Browse files

removing 'try'

  • Loading branch information...
jpemberthy committed May 12, 2010
1 parent 53ecf8c commit 7157253cddc80c8d252cea6db67cfd47b6dd788e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ezgraphix.rb
View
@@ -150,7 +150,7 @@ def div_name
#Returns a random color from the Graphic#COLORS collection.
def rand_color
@available_colors = COLORS.clone if @available_colors.to_a.empty?
- @available_colors.delete_at rand(@available_colors.try(:count))
+ @available_colors.delete_at rand(@available_colors.count)
end
#Builds the xml to feed the chart.

0 comments on commit 7157253

Please sign in to comment.