@@ -58,7 +58,7 @@ function id (meta, peers, invert, opts) {
5858 const res = profile ( meta , peers , invert )
5959 if ( ! res ) return null
6060
61- for ( let k of [ 'context' , 'platform' , 'executable' , 'harness' ] ) {
61+ for ( const k of [ 'context' , 'platform' , 'executable' , 'harness' ] ) {
6262 if ( res [ k ] && meta [ k ] . name ) {
6363 if ( invert && ! res [ k ] . name ) {
6464 res [ k ] . committish = null
@@ -82,7 +82,7 @@ function id (meta, peers, invert, opts) {
8282 return parts . filter ( Boolean ) . join ( ' ' ) || null
8383
8484 function visit ( node , path , opts ) {
85- for ( let k of sortKeys ( Object . keys ( node ) , ORDER ) ) {
85+ for ( const k of sortKeys ( Object . keys ( node ) , ORDER ) ) {
8686 if ( opts && opts . include && opts . include . indexOf ( k ) < 0 ) continue
8787 if ( opts && opts . exclude && opts . exclude . indexOf ( k ) >= 0 ) continue
8888 if ( k === 'seed' ) continue
@@ -115,7 +115,7 @@ function profile (obj, peers, invert) {
115115 if ( ! peers . length ) return
116116 let acc
117117
118- for ( let k of sortKeys ( Object . keys ( obj ) , ORDER ) ) {
118+ for ( const k of sortKeys ( Object . keys ( obj ) , ORDER ) ) {
119119 if ( k [ 0 ] === '_' ) continue
120120
121121 const v = obj [ k ]
@@ -130,7 +130,7 @@ function profile (obj, peers, invert) {
130130 } else {
131131 let different = invert
132132
133- for ( let peer of peers ) {
133+ for ( const peer of peers ) {
134134 if ( peer !== obj && ! deepEqual ( peer && peer [ k ] , v ) ) {
135135 different = ! invert
136136 break
0 commit comments