You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/02/03 23:42:18 UTC

svn commit: r1852862 - in /comdev/helpwanted.apache.org/site: admin/elastic.lua lib/elastic.lua

Author: sebb
Date: Sun Feb  3 23:42:18 2019
New Revision: 1852862

URL: http://svn.apache.org/viewvc?rev=1852862&view=rev
Log:
Second return parameter not used

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

Modified: comdev/helpwanted.apache.org/site/admin/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/elastic.lua?rev=1852862&r1=1852861&r2=1852862&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/admin/elastic.lua Sun Feb  3 23:42:18 2019
@@ -64,7 +64,7 @@ local function raw(query, doctype)
     local url = config.es_url .. doctype .. "/_search"
     local result = http.request(url, js)
     local json = JSON.decode(result)
-    return json or {}, url
+    return json or {}
 end
 
 -- Update a document
@@ -74,7 +74,7 @@ local function update(doctype, id, query
     local url = config.es_url .. doctype .. "/" .. id .. "/_update"
     local result = http.request(url, js)
     local json = JSON.decode(result)
-    return json or {}, url
+    return json or {}
 end
 
 -- Put a new document somewhere

Modified: comdev/helpwanted.apache.org/site/lib/elastic.lua
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/lib/elastic.lua?rev=1852862&r1=1852861&r2=1852862&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/lib/elastic.lua (original)
+++ comdev/helpwanted.apache.org/site/lib/elastic.lua Sun Feb  3 23:42:18 2019
@@ -64,7 +64,7 @@ local function raw(query, doctype)
     local url = config.es_url .. doctype .. "/_search"
     local result = http.request(url, js)
     local json = JSON.decode(result)
-    return json or {}, url
+    return json or {}
 end
 
 -- Update a document
@@ -74,7 +74,7 @@ local function update(doctype, id, query
     local url = config.es_url .. doctype .. "/" .. id .. "/_update"
     local result = http.request(url, js)
     local json = JSON.decode(result)
-    return json or {}, url
+    return json or {}
 end
 
 -- Put a new document somewhere