Skip to content

Commit 733f6a9

Browse files
committedOct 9, 2019
Consolidated the if statements for the validate layer function
1 parent 4033765 commit 733f6a9

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
 

‎vieraLibrary.jsx

+3-9
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,16 @@
1919
*/
2020
function validateLayer( __layer )
2121
{
22-
if ( __layer.kind == LayerKind.NORMAL )
23-
{
24-
if ( __layer.typename == "ArtLayer" )
25-
{
26-
if ( __layer.visible == true)
27-
{
22+
if ( ( __layer.kind == LayerKind.NORMAL ) &&
23+
( __layer.typename == "ArtLayer" ) &&
24+
( __layer.visible == true) ) {
2825
return true;
29-
}
30-
}
3126
}
3227
return false;
3328
}
3429

3530

3631

37-
3832
/*
3933
-------------------------------------------------------------
4034

0 commit comments

Comments
 (0)
Please sign in to comment.