Skip to content

Commit 4ad8c0a

Browse files
justin808claude
andcommitted
Fix RuboCop redundant return violations
Remove redundant return statements from error handling methods as flagged by Style/RedundantReturn. These returns are not needed since the methods end with the conditional raise statement. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent b6c7a3d commit 4ad8c0a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/generators/react_on_rails/install_generator.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ def handle_shakapacker_gemfile_error
240240
MSG
241241
GeneratorMessages.add_error(error)
242242
raise Thor::Error, error unless options.ignore_warnings?
243-
244-
return
245243
end
246244

247245
def handle_shakapacker_install_error
@@ -264,8 +262,6 @@ def handle_shakapacker_install_error
264262
MSG
265263
GeneratorMessages.add_error(error)
266264
raise Thor::Error, error unless options.ignore_warnings?
267-
268-
return
269265
end
270266

271267
def missing_package_manager?

0 commit comments

Comments
 (0)