Skip to content

Commit 0b15f68

Browse files
committed
fixup! c9ad2a8
1 parent 77afe6e commit 0b15f68

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/lib/rules/func-call-spacing.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ const tester = new RuleTester({
1919
* @returns {{line: number, column: number, endLine: number, endColumn: number}}
2020
*/
2121
function getErrorPosition(line, column, errorType) {
22-
console.log(eslintStylisticVersion)
23-
24-
if (semver.lt(eslintStylisticVersion, '3.0.0')) {
22+
if (
23+
eslintStylisticVersion !== undefined &&
24+
semver.lt(eslintStylisticVersion, '3.0.0')
25+
) {
2526
return {
2627
line,
2728
column: column - 3,
@@ -30,15 +31,6 @@ function getErrorPosition(line, column, errorType) {
3031
}
3132
}
3233

33-
if (eslintStylisticVersion === undefined) {
34-
return {
35-
line,
36-
column,
37-
endLine: line,
38-
endColumn: errorType === 'unexpected' ? column + 1 : column
39-
}
40-
}
41-
4234
return {
4335
line,
4436
column,

0 commit comments

Comments
 (0)