Skip to content

Commit

Permalink
Merge pull request busyloop#43 from decibel/patch-1
Browse files Browse the repository at this point in the history
Fix error messages to match requirements
  • Loading branch information
m-o-e committed Nov 25, 2015
2 parents 769ea3a + fe1522b commit 344e774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lolcat/cat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def self.cat!
o
end

p.die :spread, "must be > 0" if opts[:spread] < 0.1
p.die :duration, "must be > 0" if opts[:duration] < 0.1
p.die :speed, "must be > 0.1" if opts[:speed] < 0.1
p.die :spread, "must be >= 0.1" if opts[:spread] < 0.1
p.die :duration, "must be >= 0.1" if opts[:duration] < 0.1
p.die :speed, "must be >= 0.1" if opts[:speed] < 0.1

opts[:os] = opts[:seed]
opts[:os] = rand(256) if opts[:os] == 0
Expand Down

0 comments on commit 344e774

Please sign in to comment.