aboutsummaryrefslogtreecommitdiff
path: root/src/services/html_converter/html_line_converter.service.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-08-01 11:46:57 +0000
commit8e7f3ea074d16a6c89fa7366a1f64302724f661f (patch)
tree40e151399cfb1d9a3afd8576e05173a33a90b03f /src/services/html_converter/html_line_converter.service.js
parentd0a09480b396e05d58957d193490e14a4ed12ccf (diff)
parentbd5d5c9df7e39efa7ecbb1bbfbd036906d1e9535 (diff)
Merge branch 'eslint-update' into 'develop'
update ESLint See merge request pleroma/pleroma-fe!1576
Diffstat (limited to 'src/services/html_converter/html_line_converter.service.js')
-rw-r--r--src/services/html_converter/html_line_converter.service.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/html_converter/html_line_converter.service.js b/src/services/html_converter/html_line_converter.service.js
index 5eeaa7cb..9c3d1f19 100644
--- a/src/services/html_converter/html_line_converter.service.js
+++ b/src/services/html_converter/html_line_converter.service.js
@@ -46,7 +46,7 @@ export const convertHtmlToLines = (html = '') => {
// All block-level elements that aren't empty elements, i.e. not <hr>
const nonEmptyElements = new Set(visualLineElements)
// Difference
- for (let elem of emptyElements) {
+ for (const elem of emptyElements) {
nonEmptyElements.delete(elem)
}
@@ -56,7 +56,7 @@ export const convertHtmlToLines = (html = '') => {
...emptyElements.values()
])
- let buffer = [] // Current output buffer
+ const buffer = [] // Current output buffer
const level = [] // How deep we are in tags and which tags were there
let textBuffer = '' // Current line content
let tagBuffer = null // Current tag buffer, if null = we are not currently reading a tag