Skip to content

Commit

Permalink
fix: support empty array as a valid resopnse
Browse files Browse the repository at this point in the history
  • Loading branch information
eransakal committed Nov 14, 2017
1 parent c13db90 commit 6c677df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/kaltura-object-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ export abstract class KalturaObjectBase{
}
});

if (parsedArray.length)
{
result = parsedArray;
}
result = parsedArray;
} else {
throw new Error(`failed to parse property '${propertyName}. Expected type array, got type '${typeof sourceValue}`);
}
Expand Down

0 comments on commit 6c677df

Please sign in to comment.