From f9ebb8599ea6600baf87c81bbcb871f4b35c4eae Mon Sep 17 00:00:00 2001 From: a14m Date: Tue, 8 Dec 2020 13:50:51 +0100 Subject: Fix rubocop violation about duplicate exception handling --- CLI/ruby/bin/game-of-life | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'CLI/ruby/bin') 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 -- cgit v1.2.3