Skip to content

Commit

Permalink
Replace Buffer.toJson with Buffer.toJsonValue
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed May 17, 2024
1 parent 61162e8 commit 399b7a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static JsonObject getJsonObject(Response r) {
}
// With Redis 7.2 the response is a BULK (String) but using a nested array.
Buffer buffer = r.toBuffer();
if (buffer.toJson() instanceof JsonArray) {
if (buffer.toJsonValue() instanceof JsonArray) {
var array = buffer.toJsonArray();
if (array.size() == 0) {
return null;
Expand All @@ -127,7 +127,7 @@ static JsonArray getJsonArrayFromJsonGet(Response r) {
}
// With Redis 7.2 the response is a BULK (String) but using a nested array.
Buffer buffer = r.toBuffer();
if (buffer.toJson() instanceof JsonArray) {
if (buffer.toJsonValue() instanceof JsonArray) {
var array = buffer.toJsonArray();
if (array.size() == 0) {
return new JsonArray();
Expand Down

0 comments on commit 399b7a8

Please sign in to comment.