community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1852852 - /comdev/helpwanted.apache.org/site/lib/elastic.lua
Date Sun, 03 Feb 2019 20:54:30 GMT
Author: sebb
Date: Sun Feb  3 20:54:30 2019
New Revision: 1852852

URL: http://svn.apache.org/viewvc?rev=1852852&view=rev
Log:
Duplicate variable defines

Modified:
    comdev/helpwanted.apache.org/site/lib/elastic.lua

Modified: comdev/helpwanted.apache.org/site/lib/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/lib/elastic.lua?rev=1852852&r1=1852851&r2=1852852&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/lib/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/lib/elastic.lua Sun Feb  3 20:54:30 2019
@@ -33,7 +33,6 @@ local function getHits(query, size, doc,
     query = query:gsub(" ", "+")
     local url = config.es_url .. doc .. "/_search?q="..query.."&sort=" .. sitem .. ":desc&size="
.. size
     local result = http.request(url)
-    local out = {}
     local json = JSON.decode(result)
     local out = {}
     if json and json.hits and json.hits.hits then
@@ -65,7 +64,6 @@ local function getHeaders(query, size, d
     query = query:gsub(" ", "+")
     local url = config.es_url  .. doc .. "/_search?_source_exclude=body&q="..query.."&sort=date:desc&size="
.. size
     local result = http.request(url)
-    local out = {}
     local json = JSON.decode(result)
     local out = {}
     if json and json.hits and json.hits.hits then
@@ -84,7 +82,6 @@ local function getHeadersReverse(query,
     query = query:gsub(" ", "+")
     local url = config.es_url .. doc .. "/_search?_source_exclude=body&q="..query.."&sort=epoch:desc&size="
.. size
     local result = http.request(url)
-    local out = {}
     local json = JSON.decode(result)
     local out = {}
     if json and json.hits and json.hits.hits then



Mime
View raw message