Skip to content

Commit f9151b2

Browse files
committed
Removed uneccessary check
1 parent fa1b4e2 commit f9151b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/validators/layout-validator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const layoutValidatorPayload = {
6161
* @returns True if layout is valid
6262
*/
6363
export const layoutValidator = (layout: TLayout): boolean => {
64-
if (layout.length === 0 || layout === ([] as TLayout)) {
64+
if (layout.length === 0) {
6565
throw new Error(ErrorMsg.INVALID_LAYOUT);
6666
}
6767

0 commit comments

Comments
 (0)