conversation-web-view: de-globalize a variable

Implicitly declared variables in JS are global by default.

Fixes LGTM warning: "Variable header is used like a local variable, but
is missing a declaration."

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
Konstantin Kharlamov 2019-03-22 02:00:22 +03:00
parent 65af96a499
commit 585c7ba5bc

View file

@ -43,7 +43,7 @@ ConversationPageState.prototype = {
headerTable = document.createElement('table');
headerTable.id = 'geary-message-headers';
for (header in headers) {
for (var header in headers) {
let row = headerTable.appendChild(document.createElement('tr'));
let name = row.appendChild(document.createElement('th'));
let value = row.appendChild(document.createElement('td'));