[go: nahoru, domu]

Skip to content

Commit

Permalink
pacify eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Feb 12, 2016
1 parent efbee01 commit c15d1f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions test/prefs-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
const { before } = require('sdk/test/utils')
const { prefs } = require('sdk/simple-prefs')


const backup = new Map()

for (let key in prefs) {
backup.set(key, prefs[key])
backup.set(key, prefs[key])
}


function restorePrefs() {
function restorePrefs () {
// console.log('Restoring simple-prefs')
for (let [key, data] of backup) {
prefs[key] = data
Expand Down
2 changes: 1 addition & 1 deletion test/test-protocols.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ exports['test newURI(web+fs:///ipns/<path>)'] = function (assert) {
}

exports['test protocol rewrite'] = function (assert) {
prefs.fsUris = true
prefs.fsUris = true

assert.equal(proto.rewrite('ipfs:QmYHNYAaYK5hm3ZhZFx5W9H6xydKDGimjdgJMrMSdnctEm'),
'https://ipfs.io/ipfs/QmYHNYAaYK5hm3ZhZFx5W9H6xydKDGimjdgJMrMSdnctEm', '#1')
Expand Down

0 comments on commit c15d1f0

Please sign in to comment.