Skip to content

Commit 59f3cd5

Browse files
committed
Fix linting
1 parent bcdc337 commit 59f3cd5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22
const path = require('path')
33
const Analyzer = require('@goto-bus-stop/common-shake').Analyzer
4-
const evaluateConst = require('@goto-bus-stop/common-shake').evaluateConst
54
const transformAst = require('transform-ast')
65
const wrapComment = require('wrap-comment')
76
const through = require('through2')
@@ -263,11 +262,12 @@ function createStream (opts, api) {
263262
prefix += '0, '
264263
}
265264
}
266-
}
267-
// Make sure we can't accidentally continue a previous statement.
268-
// eg in `exports.a = [0]` the `[0]` could continue a previous statement if that
269-
// did not have a semicolon. By putting `void ` in front we force a new statement.
270-
else if (node.parent.type === 'ExpressionStatement') {
265+
} else if (
266+
// Make sure we can't accidentally continue a previous statement.
267+
// eg in `exports.a = [0]` the `[0]` could continue a previous statement if that
268+
// did not have a semicolon. By putting `void ` in front we force a new statement.
269+
node.parent.type === 'ExpressionStatement'
270+
) {
271271
prefix += 'void '
272272
}
273273

test/test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const test = require('tape')
2-
const assert = require('assert')
32
const fs = require('fs')
43
const path = require('path')
54
const browserify = require('browserify')

0 commit comments

Comments
 (0)