Skip to content

Commit 9eb8996

Browse files
cectongkellogg
authored andcommitted
Improvement: don't parse update response
The result of an update is not accessible to the caller. Therefore, there is no point of parsing it and it's a risk that the whole call fails if an error occurs during the parsing. Fixes #71 (cherry picked from commit 3f21267)
1 parent 51ae02f commit 9eb8996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sparql/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def update(query, options = {})
324324
require 'sparql' unless defined?(::SPARQL::Grammar)
325325
SPARQL.execute(query, @url, options.merge(update: true))
326326
else
327-
parse_response(response(query, options), options)
327+
response(query, options)
328328
end
329329
self
330330
end

0 commit comments

Comments
 (0)