community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1852862 - in /comdev/helpwanted.apache.org/site: admin/elastic.lua lib/elastic.lua
Date Sun, 03 Feb 2019 23:42:18 GMT
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



Mime
View raw message