Skip to content

Commit b2b9b84

Browse files
committed
refactor: fixed xo aspect prefer-const
addDynamicContent is never reassigned. Use const instead.
1 parent bd6814f commit b2b9b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test for dynamically inserted images and iframes
2-
let addDynamicContent = (event) => {
2+
const addDynamicContent = (event) => {
33
let divElement = document.createElement('div'),
44
imageElement = document.createElement('img'),
55
iframeElement = document.createElement('iframe');

0 commit comments

Comments
 (0)