Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 7d8e482

Browse files
author
mounarajan
committed
REST support
1 parent e3d8249 commit 7d8e482

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/semantics3.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def run_query(endpoint,method = "GET",*params)
233233
data = params[0]
234234

235235
if data == nil
236-
@query_result = _make_request(endpoint,method,@data_query[endpoint].to_json,)
236+
@query_result = _make_request(endpoint,method,@data_query[endpoint].to_json)
237237
else
238238
if not data.is_a?(Hash) and not data.is_a?(String)
239239
#-- Throw error - neither string nor hash
@@ -279,5 +279,4 @@ def self.is_json?(foo)
279279
rescue JSON::ParserError
280280
false
281281
end
282-
end
283-
end
282+
end

0 commit comments

Comments
 (0)