aboutsummaryrefslogtreecommitdiff
path: root/src/logging.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-10-15 19:28:35 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-10-15 20:30:33 +0200
commit8b2f53e3ed810a0539f76feb993f0044bc8c0f38 (patch)
treef88687b498f133e8e7c0743def7ef7929f6173c6 /src/logging.ts
parent353eeca339e060eb4a03e0b67343086854a5e5d7 (diff)
fix tslint warnings
Diffstat (limited to 'src/logging.ts')
-rw-r--r--src/logging.ts5
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);
});
}