Skip to content

Commit 42c958c

Browse files
committed
Remove unneeded branch of code
1 parent 25cdeef commit 42c958c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,6 @@ function addProperties(result, properties, schema) {
309309
) {
310310
if (value) {
311311
result.setAttribute(info.attribute, '')
312-
} else {
313-
// To do: remove, we create new elements, we don’t mutate existing ones.
314-
result.removeAttribute(info.attribute)
315312
}
316313
} else if (info.booleanish) {
317314
result.setAttribute(info.attribute, String(value))

0 commit comments

Comments
 (0)