1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02: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,7 @@ export default class AppIdService {
private static async makeAndGetAppId(key: string) {
const existingId = await UtilsService.getObjFromStorage<string>(key);
if(existingId != null) {
if (existingId != null) {
return existingId;
}

View File

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