refactor(ivy): remove superfluous Array check (#25894)

related #25755

PR Close #25894
This commit is contained in:
Ben Lesh 2018-09-10 10:42:32 -07:00 committed by Igor Minar
parent d83f9d432a
commit 7ba0cb7c93
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ function maybeUnwrapEmpty<T>(value: T): T;
function maybeUnwrapEmpty(value: any): any {
if (value === EMPTY) {
return {};
} else if (Array.isArray(value) && value === EMPTY_ARRAY) {
} else if (value === EMPTY_ARRAY) {
return [];
} else {
return value;