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

Merge pull request #826 from MetaMask/mini-lint

Maintain linting.
This commit is contained in:
Dan Finlay 2016-11-18 17:51:32 -08:00 committed by GitHub
commit cb0a9c7079
2 changed files with 3 additions and 3 deletions

View File

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

View File

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