Merge branch 'fix-lgtm-warnings' into 'master'

Fix LGTM warnings

See merge request GNOME/geary!176
This commit is contained in:
Michael Gratton 2019-03-24 03:07:52 +00:00
commit 59ef85ca4b
2 changed files with 2 additions and 4 deletions

View file

@ -32,8 +32,6 @@ ComposerPageState.prototype = {
this.nextSelectionId = 0;
this.cursorContext = null;
let state = this;
document.addEventListener("click", function(e) {
if (e.target.tagName == "A") {
e.preventDefault();
@ -566,7 +564,7 @@ ComposerPageState.htmlToText = function(root) {
}
return text;
}
};
// Linkifies "plain text" link
ComposerPageState.linkify = function(node) {

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'));