diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-25 14:28:52 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-26 22:06:27 -0500 |
commit | ef833d2bea07cd2e979dd558eaba141f880063cb (patch) | |
tree | 8dfe91d86231fbc9aed7560bd35aabcfd8e34af7 /ext/fg/js/source.js | |
parent | 527595f79bf97bc2d17cb821c8bb6b4e8b6776f9 (diff) |
Use const rather than let where possible
Diffstat (limited to 'ext/fg/js/source.js')
-rw-r--r-- | ext/fg/js/source.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index 886093d7..e6b991c4 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -361,7 +361,7 @@ class TextSourceElement { let consumed = 0; let content = ''; - for (let currentChar of this.content || '') { + for (const currentChar of this.content || '') { if (consumed >= length) { break; } else if (!currentChar.match(IGNORE_TEXT_PATTERN)) { |