Skip to content

Commit bc2a8e5

Browse files
committed
Use consistent whitespace
1 parent 2991f03 commit bc2a8e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/_tools/remark/plugins/remark-namespace-toc/lib/transformer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function removeLinks( tree ) {
6868
}
6969
}
7070
}
71-
children.splice( start + 1, end - start - 1 );
71+
children.splice( start+1, end-start-1 );
7272
return found;
7373
}
7474

@@ -165,7 +165,7 @@ function transformer( tree, file ) {
165165
debug( 'Index: %d', index );
166166
for ( i = index; i < parent.children.length; i++ ) {
167167
if ( parent.children[ i ].value === TOC_END ) {
168-
parent.children.splice( index + 1, i - index - 1, newNode );
168+
parent.children.splice( index+1, i-index-1, newNode );
169169
break;
170170
}
171171
}
@@ -212,7 +212,7 @@ function transformer( tree, file ) {
212212
child.value === '<!-- /.links -->'
213213
) {
214214
c = parent.children;
215-
c.splice.apply( c, [i-1, 0].concat( newNodes ) );
215+
c.splice.apply( c, [ i-1, 0 ].concat( newNodes ) );
216216
found = true;
217217
break;
218218
}

lib/node_modules/@stdlib/_tools/remark/plugins/remark-stdlib-related/lib/transformer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function removeLinks( tree ) {
7474
}
7575
}
7676
}
77-
children.splice( start + 1, end - start - 1 );
77+
children.splice( start+1, end-start-1 );
7878
return found;
7979
}
8080

@@ -147,7 +147,7 @@ function transformer( tree, file ) {
147147
};
148148
for ( i = index; i < parent.children.length; i++ ) {
149149
if ( parent.children[ i ].value === RELATED_END ) {
150-
parent.children.splice( index + 1, i - index - 1, newNode );
150+
parent.children.splice( index+1, i-index-1, newNode );
151151
break;
152152
}
153153
}
@@ -193,7 +193,7 @@ function transformer( tree, file ) {
193193
child.value === '<!-- /.links -->'
194194
) {
195195
c = parent.children;
196-
c.splice.apply( c, [i-1, 0].concat( newNodes ) );
196+
c.splice.apply( c, [ i-1, 0 ].concat( newNodes ) );
197197
found = true;
198198
break;
199199
}

0 commit comments

Comments
 (0)