@@ -455,7 +455,7 @@ function _validateFrame(frame) {
455
455
for ( const id of util . asArray ( frame [ 0 ] [ '@id' ] ) ) {
456
456
// @id must be wildcard or an IRI
457
457
if ( ! ( types . isObject ( id ) || url . isAbsolute ( id ) ) ||
458
- ( types . isString ( id ) && id . indexOf ( '_:' ) === 0 ) ) {
458
+ ( types . isString ( id ) && id . indexOf ( '_:' ) === 0 ) ) {
459
459
throw new JsonLdError (
460
460
'Invalid JSON-LD syntax; invalid @id in frame.' ,
461
461
'jsonld.SyntaxError' , { code : 'invalid frame' , frame} ) ;
@@ -467,7 +467,7 @@ function _validateFrame(frame) {
467
467
for ( const type of util . asArray ( frame [ 0 ] [ '@type' ] ) ) {
468
468
// @id must be wildcard or an IRI
469
469
if ( ! ( types . isObject ( type ) || url . isAbsolute ( type ) ) ||
470
- ( types . isString ( type ) && type . indexOf ( '_:' ) === 0 ) ) {
470
+ ( types . isString ( type ) && type . indexOf ( '_:' ) === 0 ) ) {
471
471
throw new JsonLdError (
472
472
'Invalid JSON-LD syntax; invalid @type in frame.' ,
473
473
'jsonld.SyntaxError' , { code : 'invalid frame' , frame} ) ;
@@ -578,8 +578,8 @@ function _filterSubject(state, subject, frame, flags) {
578
578
// no longer a wildcard pattern if frame has any non-keyword properties
579
579
wildcard = false ;
580
580
581
- // skip, but allow match if node has no value for property, and frame has a
582
- // default value
581
+ // skip, but allow match if node has no value for property, and frame has
582
+ // a default value
583
583
if ( nodeValues . length === 0 && hasDefault ) {
584
584
continue ;
585
585
}
@@ -597,8 +597,8 @@ function _filterSubject(state, subject, frame, flags) {
597
597
}
598
598
matchThis = true ;
599
599
} else if ( types . isObject ( thisFrame ) ) { // XXX only framing keywords
600
- // node matches if values is not empty and the value of property in frame
601
- // is wildcard
600
+ // node matches if values is not empty and the value of property in
601
+ // frame is wildcard
602
602
matchThis = nodeValues . length > 0 ;
603
603
} else {
604
604
if ( graphTypes . isValue ( thisFrame ) ) {
0 commit comments