Skip to content

Commit

Permalink
FlatArray Concat: Minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Aug 26, 2023
1 parent c75cf99 commit f8f33b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public FlatArray<T> Concat(FlatArray<T> other)
{
if (other.length == default)
{
return this;
return length == default ? default : this;
}

if (length == default)
Expand All @@ -24,7 +24,7 @@ public FlatArray<T> Concat([AllowNull] params T[] other)
{
if (other is null || other.Length == default)
{
return this;
return length == default ? default : this;
}

if (length == default)
Expand Down

0 comments on commit f8f33b8

Please sign in to comment.