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:
parent
65af96a499
commit
585c7ba5bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue