mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Fix potential race condition
This commit is contained in:
parent
04fefc0761
commit
0b0707363c
@ -9,6 +9,7 @@ let stringLength;
|
|||||||
// process.exit(0);
|
// process.exit(0);
|
||||||
})();
|
})();
|
||||||
const surrounding_box = (col, lines, lengths) => {
|
const surrounding_box = (col, lines, lengths) => {
|
||||||
|
if ( ! stringLength ) return;
|
||||||
if ( ! lengths ) {
|
if ( ! lengths ) {
|
||||||
lengths = lines.map(line => stringLength(line));
|
lengths = lines.map(line => stringLength(line));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user