diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-03-20 14:24:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-03-20 14:24:42 +0100 |
commit | 4fe34a024c77df99b263f6b97c43f9870a9d3160 (patch) | |
tree | c2d7d09afe7303c739484dce324967bf6368aa82 /lib/colonial_twilight/spaces.rb | |
parent | ad77e25eec96122f94fc6ae2db258c1aea984980 (diff) | |
download | colonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.zip colonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.tar.gz |
some rubocop cleanup
Diffstat (limited to 'lib/colonial_twilight/spaces.rb')
-rw-r--r-- | lib/colonial_twilight/spaces.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb index 83d9082..5c04250 100644 --- a/lib/colonial_twilight/spaces.rb +++ b/lib/colonial_twilight/spaces.rb @@ -15,6 +15,7 @@ module ColonialTwilight def shift(val) @v += val raise "out of track #{@v}" if @v.negative? || @v > @max + @v end @@ -147,7 +148,7 @@ module ColonialTwilight end def shift_terror(num = 1) - raise "terror cant be negative" if @terror.zero? and num.negative? + raise 'terror cant be negative' if @terror.zero? && num.negative? @terror += num end |