@@ -244,7 +244,7 @@ function setupFlowBlocks(activity) {
244244 for ( let i = 0 ; i < n ; i ++ ) {
245245 const obj = logo . connectionStore [ turtle ] [ blk ] . pop ( ) ;
246246 activity . blocks . blockList [ obj [ 0 ] ] . connections [ obj [ 1 ] ] = obj [ 2 ] ;
247- if ( obj [ 2 ] != null ) {
247+ if ( obj [ 2 ] !== null ) {
248248 activity . blocks . blockList [ obj [ 2 ] ] . connections [ 0 ] = obj [ 0 ] ;
249249 }
250250 }
@@ -273,7 +273,7 @@ function setupFlowBlocks(activity) {
273273 try {
274274 // Check to see if another turtle has already disconnected these blocks
275275 const otherTurtle = __lookForOtherTurtles ( blk , turtle ) ;
276- if ( otherTurtle != null ) {
276+ if ( otherTurtle !== null ) {
277277 // Copy the connections and queue the blocks
278278 logo . connectionStore [ turtle ] [ blk ] = [ ] ;
279279 for ( let i = logo . connectionStore [ otherTurtle ] [ blk ] . length ; i > 0 ; i -- ) {
@@ -294,7 +294,7 @@ function setupFlowBlocks(activity) {
294294 }
295295 } else {
296296 let child = activity . blocks . findBottomBlock ( args [ 1 ] ) ;
297- while ( child != blk ) {
297+ while ( child !== blk ) {
298298 if ( activity . blocks . blockList [ child ] . name !== "hidden" ) {
299299 const queueBlock = new Queue ( child , factor , blk , receivedArg ) ;
300300 tur . parentFlowQueue . push ( blk ) ;
@@ -309,14 +309,14 @@ function setupFlowBlocks(activity) {
309309 // run
310310 logo . connectionStore [ turtle ] [ blk ] = [ ] ;
311311 child = args [ 1 ] ;
312- while ( child != null ) {
312+ while ( child !== null ) {
313313 const lastConnection =
314314 activity . blocks . blockList [ child ] . connections . length - 1 ;
315315 const nextBlk =
316316 activity . blocks . blockList [ child ] . connections [ lastConnection ] ;
317317 // Don't disconnect a hidden block from its parent
318318 if (
319- nextBlk != null &&
319+ nextBlk !== null &&
320320 activity . blocks . blockList [ nextBlk ] . name === "hidden"
321321 ) {
322322 logo . connectionStore [ turtle ] [ blk ] . push ( [
@@ -336,7 +336,7 @@ function setupFlowBlocks(activity) {
336336 child = nextBlk ;
337337 }
338338
339- if ( child != null ) {
339+ if ( child !== null ) {
340340 activity . blocks . blockList [ child ] . connections [ 0 ] = null ;
341341 }
342342 }
@@ -534,7 +534,7 @@ function setupFlowBlocks(activity) {
534534 // Run the cases here.
535535 let switchCase ;
536536 const argBlk = activity . blocks . blockList [ switchBlk ] . connections [ 1 ] ;
537- if ( argBlk == null ) {
537+ if ( argBlk === null ) {
538538 switchCase = "__default__" ;
539539 } else {
540540 switchCase = logo . parseArg ( logo , turtle , argBlk , logo . receivedArg ) ;
@@ -659,7 +659,7 @@ function setupFlowBlocks(activity) {
659659
660660 // Since we pop the queue, we need to unhighlight our parent
661661 const parentBlk = activity . blocks . blockList [ blk ] . connections [ 0 ] ;
662- if ( parentBlk != null ) {
662+ if ( parentBlk !== null ) {
663663 if ( ! tur . singer . suppressOutput && tur . singer . justCounting . length === 0 ) {
664664 tur . unhighlightQueue . push ( parentBlk ) ;
665665 }
0 commit comments