Skip to content

Commit 6eeccc9

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent f94280c commit 6eeccc9

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/node_modules/@stdlib/_tools/eslint/rules/no-error-string-concat/test/fixtures/unvalidated.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
'use strict';
2020

2121
var valid = [];
22-
var test;
2322

2423
// String concatenation in non-error constructor:
25-
test = {
24+
var test = {
2625
'code': 'new MyClass( \'prefix\' + value );'
2726
};
2827
valid.push( test );

lib/node_modules/@stdlib/_tools/eslint/rules/no-error-string-concat/test/fixtures/valid.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
'use strict';
2020

2121
var valid = [];
22-
var test;
2322

2423
// Using a string literal:
25-
test = {
24+
var test = {
2625
'code': 'throw new Error( \'unexpected error.\' );'
2726
};
2827
valid.push( test );

0 commit comments

Comments
 (0)