Skip to content

Commit 52605d6

Browse files
committed
Ignore Rails/Exit warning in rescue clause
This is fine.
1 parent ea1dee3 commit 52605d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/generators/spree/custom_user/custom_user_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def check_for_constant
1515
klass
1616
rescue NameError
1717
@shell.say "Couldn't find #{class_name}. Are you sure that this class exists within your application and is loaded?", :red
18-
exit(1)
18+
exit(1) # rubocop: disable Rails/Exit
1919
end
2020

2121
def generate

0 commit comments

Comments
 (0)