Skip to content

Commit

Permalink
[#104] Add while loop break when both are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanluker committed Jan 28, 2018
1 parent 386cc73 commit aa09de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/indicators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ export class Indicators {
match = false;
break;
}
} while (folderName !== openFile[index]);
} while (folderName !== openFile[index] &&
sourceFile[index] !== undefined &&
openFile[index] !== undefined);

return match;
}
Expand Down

0 comments on commit aa09de2

Please sign in to comment.