community-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1852853&view=rev
Log:
Unused

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=1852853&r1=1852852&r2=1852853&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/lib/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/lib/elastic.lua Sun Feb  3 20:56:53 2019
@@ -48,7 +48,6 @@ end
 local function getDoc (ty, id)
     local url = config.es_url  .. ty .. "/" .. id
     local result = http.request(url)
-    local out = {}
     local json = JSON.decode(result)
     if json and json._source then
         json._source.request_id = json._id
@@ -99,7 +98,6 @@ local function raw(query, doctype)
     doctype = doctype or default_doc
     local url = config.es_url .. doctype .. "/_search"
     local result = http.request(url, js)
-    local out = {}
     local json = JSON.decode(result)
     return json or {}, url
 end
@@ -110,7 +108,6 @@ local function update(doctype, id, query
     doctype = doctype or default_doc
     local url = config.es_url .. doctype .. "/" .. id .. "/_update"
     local result = http.request(url, js)
-    local out = {}
     local json = JSON.decode(result)
     return json or {}, url
 end
@@ -123,7 +120,6 @@ local function index(r, id, ty, body)
     end
     local url = config.es_url .. ty .. "/" .. id
     local result = http.request(url, body)
-    local out = {}
     local json = JSON.decode(result)
     return json or {}
 end



Mime
View raw message