mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
Fix potential race condition
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user