lib/hanami/application/slice_registrar.rb in hanami-2.0.0.alpha7 vs lib/hanami/application/slice_registrar.rb in hanami-2.0.0.alpha7.1
- old
+ new
@@ -74,11 +74,10 @@
end
slice_class =
begin
inflector.constantize("#{slice_const_name}::Slice")
- rescue NameError => e
- raise e unless e.name == :Slice
+ rescue NameError # rubocop:disable Lint/SuppressedException
end
register(slice_name, slice_class)
end