This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new f2f62d5  Unnecessary init
f2f62d5 is described below

commit f2f62d5f3a567d4104a33793bf8849a8babbf898
Author: Sebb <[email protected]>
AuthorDate: Thu Nov 18 15:22:58 2021 +0000

    Unnecessary init
---
 webui/js/source/base-http-extensions.js | 6 +++---
 webui/js/source/construct-thread.js     | 2 +-
 webui/js/source/listview-header.js      | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/webui/js/source/base-http-extensions.js 
b/webui/js/source/base-http-extensions.js
index 60a2074..d70d34a 100644
--- a/webui/js/source/base-http-extensions.js
+++ b/webui/js/source/base-http-extensions.js
@@ -76,10 +76,10 @@ async function async_snap(error) {
 
 // Asynchronous GET call
 async function GET(url, callback, state) {
-    console.log("Fetching JSON resource at %s".format(url))
+    console.log("Fetching JSON resource at %s".format(url));
     let pkey = "GET-%s-%s".format(callback, url);
-    let res = undefined;
-    let res_json = undefined;
+    let res;
+    let res_json;
     state = state || {};
     state.url = url;
     if (state && state.cached === true && async_cache[url]) {
diff --git a/webui/js/source/construct-thread.js 
b/webui/js/source/construct-thread.js
index dbc67a5..d57bb9f 100644
--- a/webui/js/source/construct-thread.js
+++ b/webui/js/source/construct-thread.js
@@ -65,7 +65,7 @@ function construct_thread(thread, cid, nestlevel, included) {
     }
     cid %= 5;
     let color = ['286090', 'ccab0a', 'c04331', '169e4e', '6d4ca5'][cid];
-    let email = undefined;
+    let email;
     if (nestlevel < max_nesting) {
         email = new HTML('div', {
             class: 'email_wrapper',
diff --git a/webui/js/source/listview-header.js 
b/webui/js/source/listview-header.js
index 548c838..1785ded 100644
--- a/webui/js/source/listview-header.js
+++ b/webui/js/source/listview-header.js
@@ -127,7 +127,7 @@ function listview_list_lists(state, json) {
     let lists = document.getElementById('list_picker_ul');
     let searching = (state && state.search === true) ? true : false;
     if (state && state.to) {
-        let tab = undefined;
+        let tab;
         let tabs = lists.childNodes;
         for (let xtab of tabs) {
             if ((state.to == 'search' && xtab.getAttribute('id') == 
'tab_search') || (xtab.innerText == state.to || xtab.getAttribute('data-list') 
== state.to)) {

Reply via email to