Skip to content

Commit 532ef0d

Browse files
committed
Add back Lint/UselessAssignment
Fix: rails#43169
1 parent 78e4020 commit 532ef0d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ Lint/RedundantStringCoercion:
221221
Lint/UriEscapeUnescape:
222222
Enabled: true
223223

224+
Lint/UselessAssignment:
225+
Enabled: true
226+
224227
Lint/DeprecatedClassMethods:
225228
Enabled: true
226229

actiontext/lib/generators/action_text/install/install_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class InstallGenerator < ::Rails::Generators::Base
99
source_root File.expand_path("templates", __dir__)
1010

1111
def install_javascript_dependencies
12-
if using_node = Pathname(destination_root).join("package.json").exist?
12+
if Pathname(destination_root).join("package.json").exist?
1313
say "Installing JavaScript dependencies", :green
1414
run "yarn add @rails/actiontext trix"
1515
end

0 commit comments

Comments
 (0)