Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit b3e5448

Browse files
committed
Fixed a bug I introduced when removing linting errors.
1 parent 2731d11 commit b3e5448

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tree-indenter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
const log = console.debug // in dev
3-
// const log = () => {} // in production
2+
// const log = console.debug // in dev
3+
const log = () => {} // in production
44

55
module.exports = class TreeIndenter {
66
constructor (languageMode) {
@@ -56,11 +56,11 @@ module.exports = class TreeIndenter {
5656
const notFirstOrLastSibling =
5757
(node.previousSibling != null && node.nextSibling != null)
5858

59-
const isScope = this.scopes.indent[node.parent.type](
60-
notFirstOrLastSibling && isScope && increment++)
59+
const isScope = this.scopes.indent[node.parent.type];
60+
(notFirstOrLastSibling && isScope && increment++)
6161

62-
const isScope2 = this.scopes.indentExceptFirst[node.parent.type](
63-
!increment && isScope2 && node.previousSibling != null && increment++)
62+
const isScope2 = this.scopes.indentExceptFirst[node.parent.type];
63+
(!increment && isScope2 && node.previousSibling != null && increment++)
6464

6565
// check whether the last (lower) indentation happend due to a scope that
6666
// started on the same row and ends directly before this.

0 commit comments

Comments
 (0)