Skip to content

Commit

Permalink
Apply same change to SpellCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lundine committed Jan 26, 2024
1 parent ebd1a91 commit dfaa6fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RediSearchClient/SpellCheckResult.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System;
using StackExchange.Redis;

namespace RediSearchClient
Expand Down Expand Up @@ -69,6 +69,10 @@ internal static SpellCheckResult Create(RedisResult[] redisResult)

internal static SpellCheckResult[] CreateArray(RedisResult redisResult)
{
if (redisResult.IsNull)
{
return Array.Empty<SpellCheckResult>();
}
var redisResultArray = (RedisResult[])redisResult;

var results = new SpellCheckResult[redisResultArray.Length];
Expand Down

0 comments on commit dfaa6fe

Please sign in to comment.