Skip to content

Commit

Permalink
break some long lines, #211
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 14, 2020
1 parent b8b4608 commit 4164ad3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/types/IOType.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class IOType {

// Validate that parametric types look as expected
if ( this.typeName.includes( '<' ) ) {
assert && assert( Array.isArray( this.parameterTypes.length > 0 ), 'angle bracket notation is only used for parametric IO Types that have parameter IO Types' );
assert && assert( Array.isArray( this.parameterTypes.length > 0 ),
'angle bracket notation is only used for parametric IO Types that have parameter IO Types' );
}

const splitOnParameters = this.typeName.split( /[<(]/ )[ 0 ];
Expand All @@ -116,7 +117,8 @@ class IOType {
assert && assert( Array.isArray( methodObject.parameterTypes ), 'parameter types must be an array: ' + methodObject.parameterTypes );
assert && assert( typeof methodObject.implementation === 'function', 'implementation must be of type function: ' + methodObject.implementation );
assert && assert( typeof methodObject.documentation === 'string', 'documentation must be of type string: ' + methodObject.documentation );
assert && methodObject.invocableForReadOnlyElements && assert( typeof methodObject.invocableForReadOnlyElements === 'boolean', 'invocableForReadOnlyElements must be of type boolean: ' + methodObject.invocableForReadOnlyElements );
assert && methodObject.invocableForReadOnlyElements && assert( typeof methodObject.invocableForReadOnlyElements === 'boolean',
'invocableForReadOnlyElements must be of type boolean: ' + methodObject.invocableForReadOnlyElements );
}
} );
assert && assert( this.documentation, 'documentation must be provided' );
Expand Down

0 comments on commit 4164ad3

Please sign in to comment.