diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-10-15 19:28:35 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-10-15 20:30:33 +0200 |
commit | 8b2f53e3ed810a0539f76feb993f0044bc8c0f38 (patch) | |
tree | f88687b498f133e8e7c0743def7ef7929f6173c6 /src/logging.ts | |
parent | 353eeca339e060eb4a03e0b67343086854a5e5d7 (diff) |
fix tslint warnings
Diffstat (limited to 'src/logging.ts')
-rw-r--r-- | src/logging.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logging.ts b/src/logging.ts index 2c559e8d9..ca073c10c 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -221,8 +221,9 @@ const reportCache: { [reportId: string]: any } = {}; * Formatted as RFC4122 version 4 UUID. */ function getInsecureUuid() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { - var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c: string) => { + const r = Math.random() * 16 | 0; + const v = c === "x" ? r : (r & 0x3 | 0x8); return v.toString(16); }); } |