Fix rubocop

Stephen Paul Weber created

Change summary

.rubocop.yml | 4 ----
bin/sim_job  | 5 +++--
2 files changed, 3 insertions(+), 6 deletions(-)

Detailed changes

.rubocop.yml 🔗

@@ -122,10 +122,6 @@ Lint/OutOfRangeRegexpRef:
 Lint/MissingSuper:
   Enabled: false
 
-Lint/ConstantDefinitionInBlock:
-  AllowedMethods:
-    - when_ready
-
 Style/BlockDelimiters:
   EnforcedStyle: semantic
   AllowBracesOnProceduralOneLiners: true

bin/sim_job 🔗

@@ -275,9 +275,10 @@ EM.run do
 	}.catch { |e|
 		LOG.error e
 
-		if e.is_a?(::Exception)
+		case e
+		when :Exception
 			Sentry.capture_exception(e)
-		elsif e.is_a?(EM::HttpClient)
+		when EM::HttpClient
 			LOG.error e.response_header
 			Sentry.capture_message(
 				"HTTP Error: #{e.response_header.http_status} @ #{e.last_effective_url}"