Skip to content

Commit 376bacc

Browse files
lint
1 parent 53c58b8 commit 376bacc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/02-on-this-page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
var list = headings.reduce(function (accum, heading) {
2222
var link = document.createElement('a')
2323
var headingWithoutLabels = heading.cloneNode(true)
24-
if (headingWithoutLabels.querySelector('span.label') != null)
24+
if (headingWithoutLabels.querySelector('span.label') != null) {
2525
headingWithoutLabels.removeChild(headingWithoutLabels.querySelector('span.label'))
26+
}
2627
link.textContent = headingWithoutLabels.textContent
2728
links[(link.href = '#' + heading.id)] = link
2829
var listItem = document.createElement('li')

0 commit comments

Comments
 (0)