Skip to content

Commit e292e3f

Browse files
author
Mat Jones
committed
clean up syntax for CoreUtils.sleepSync
1 parent 52cf51f commit e292e3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utilities/core-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ const _sleep = (milliseconds: number, debug: boolean = false) => {
9797
* @param milliseconds the delay
9898
*/
9999
const _sleepSync = (milliseconds: number) => {
100-
let now = Date.now(),
101-
start = now;
100+
let now = Date.now();
101+
const start = now;
102102
while (now - start < milliseconds) {
103103
now = Date.now();
104104
}

0 commit comments

Comments
 (0)