1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Maintain linting.

This commit is contained in:
Kevin Serrano 2016-11-18 16:27:26 -08:00
parent df5f99fa3b
commit d6286cd13a
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ function remoteStoreWithLocalStorageCache (storageKey) {
return store return store
} }
function eachJsonMessage(payload, transformFn){ function eachJsonMessage (payload, transformFn) {
if (Array.isArray(payload)) { if (Array.isArray(payload)) {
return payload.map(transformFn) return payload.map(transformFn)
} else { } else {

View File

@ -1,7 +1,7 @@
const MAX = Number.MAX_SAFE_INTEGER const MAX = Number.MAX_SAFE_INTEGER
let idCounter = Math.round( Math.random() * MAX ) let idCounter = Math.round(Math.random() * MAX)
function createRandomId() { function createRandomId () {
idCounter = idCounter % MAX idCounter = idCounter % MAX
return idCounter++ return idCounter++
} }