summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/bin
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-08 13:50:51 +0100
committera14m <[email protected]>2020-12-08 13:50:51 +0100
commitf9ebb8599ea6600baf87c81bbcb871f4b35c4eae (patch)
treef1f73a1abe5a4a0092dfa2b50becee59e035f6c9 /CLI/ruby/bin
parent7737bef237235883115c799fe8d9e3a7c55e42ec (diff)
Fix rubocop violation about duplicate exception handling
Diffstat (limited to 'CLI/ruby/bin')
-rwxr-xr-xCLI/ruby/bin/game-of-life5
1 files changed, 1 insertions, 4 deletions
diff --git a/CLI/ruby/bin/game-of-life b/CLI/ruby/bin/game-of-life
index f83d72b..0230271 100755
--- a/CLI/ruby/bin/game-of-life
+++ b/CLI/ruby/bin/game-of-life
@@ -60,10 +60,7 @@ begin
CLI.start(ARGV)
rescue SystemExit, Interrupt
"Do nothing when user exits with Interrupt (CMD/Ctrl + C)"
-rescue NotImplementedError => e
- puts e.message
- exit(-1)
-rescue GameOfLife::Error => e
+rescue NotImplementedError, GameOfLife::Error => e
puts e.message
exit(-1)
end