refactor(ivy): remove superfluous Array check (#25894)
related #25755 PR Close #25894
This commit is contained in:
parent
d83f9d432a
commit
7ba0cb7c93
|
@ -179,7 +179,7 @@ function maybeUnwrapEmpty<T>(value: T): T;
|
||||||
function maybeUnwrapEmpty(value: any): any {
|
function maybeUnwrapEmpty(value: any): any {
|
||||||
if (value === EMPTY) {
|
if (value === EMPTY) {
|
||||||
return {};
|
return {};
|
||||||
} else if (Array.isArray(value) && value === EMPTY_ARRAY) {
|
} else if (value === EMPTY_ARRAY) {
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in New Issue