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