Merge pull request #826 from MetaMask/mini-lint

Maintain linting.
feature/default_network_editable
Dan Finlay 8 years ago committed by GitHub
commit cb0a9c7079
  1. 2
      app/scripts/lib/inpage-provider.js
  2. 4
      app/scripts/lib/random-id.js

@ -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 {

@ -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++
}

Loading…
Cancel
Save