Skip to content

Commit

Permalink
refactor(plugins/tidy-html): remove unused var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 12, 2023
1 parent e79699e commit 5369a6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/tidy-html/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ async function plugin(server) {
* As such, alt attributes in <img> tags are set to an empty string rather than removed here
*/
if (options?.removeAlt === true) {
const images = dom.window.document.querySelectorAll("img");
images.forEach((element) => {
dom.window.document.querySelectorAll("img").forEach((element) => {
element.setAttribute("alt", "");
});
}
Expand Down

0 comments on commit 5369a6b

Please sign in to comment.