Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e5bbe14

Browse files
rubocop --only Style/ParallelAssignment -a
1 parent f2330d9 commit e5bbe14

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎lib/generators/react/component_generator.rb‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ def webpacker?
149149

150150
def parse_attributes!
151151
self.attributes = (attributes || []).map do |attr|
152-
name, type, options = '', '', ''
152+
name = ''
153+
type = ''
154+
options = ''
153155
options_regex = /(?<options>{.*})/
154156

155157
name, type = attr.split(':')

‎test/test_helper.rb‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ def reset_transformer
6868
def capture_io
6969
require 'stringio'
7070

71-
orig_stdout, orig_stderr = $stdout, $stderr
72-
captured_stdout, captured_stderr = StringIO.new, StringIO.new
73-
$stdout, $stderr = captured_stdout, captured_stderr
71+
orig_stdout = $stdout
72+
orig_stderr = $stderr
73+
captured_stdout = StringIO.new
74+
captured_stderr = StringIO.new
75+
$stdout = captured_stdout
76+
$stderr = captured_stderr
7477

7578
yield
7679

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /