bits of Bug 1229519: Fix toolkit/components/satchel to pass eslint checks. r=dolske

This commit is contained in:
2023-10-10 16:05:37 +08:00
parent e9dee823ef
commit c57ebb477f
2 changed files with 3 additions and 3 deletions
@@ -516,7 +516,7 @@ FormAutoCompleteChild.prototype = {
let result = new FormAutoCompleteResult(
null,
[for (res of message.data.results) {text: res}],
Array.from(message.data.results, res => ({ text: res })),
null,
null
);
+2 -2
View File
@@ -624,7 +624,7 @@ FormHistory.prototype = {
},
dbCreateTable: function(name, table) {
let tSQL = [[col, table[col]].join(" ") for (col in table)].join(", ");
let tSQL = Object.keys(table).map(col => [col, table[col]].join(" ")).join(", ");
this.log("Creating table " + name + " with " + tSQL);
this.dbConnection.createTable(name, tSQL);
},
@@ -802,7 +802,7 @@ FormHistory.prototype = {
for (let name in this.dbSchema.tables) {
let table = this.dbSchema.tables[name];
let query = "SELECT " +
[col for (col in table)].join(", ") +
Object.keys(table).join(", ") +
" FROM " + name;
try {
let stmt = this.dbConnection.createStatement(query);