1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

lint fixes

This commit is contained in:
Kyle Spearrin
2017-11-02 16:33:54 -04:00
parent b94a55f655
commit eb8c4063ca
2 changed files with 3 additions and 1 deletions

View File

@@ -11,7 +11,9 @@ export default class UtilsService {
// ref: http://stackoverflow.com/a/2117523/1090359 // ref: http://stackoverflow.com/a/2117523/1090359
static newGuid(): string { static newGuid(): string {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
// tslint:disable-next-line
const r = Math.random() * 16 | 0; const r = Math.random() * 16 | 0;
// tslint:disable-next-line
const v = c === 'x' ? r : (r & 0x3 | 0x8); const v = c === 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16); return v.toString(16);
}); });