Skip to content

Commit

Permalink
bit of cleanup + linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigredgeek committed Dec 18, 2016
1 parent 932b24a commit 1c625d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"node": true
},
"rules": {
"no-console": 0
"no-console": 0,
"no-empty": [1, { "allowEmptyCatch": true }]
},
"extends": "eslint:recommended"
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ node_modules: package.json
@touch node_modules

lint: .FORCE
eslint debug.js
eslint browser.js debug.js index.js node.js

test: .FORCE
mocha
Expand Down
7 changes: 3 additions & 4 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
&& 'undefined' != typeof chrome.storage
? chrome.storage.local
exports.storage = 'undefined' != typeof window.chrome
&& 'undefined' != typeof window.chrome.storage
? window.chrome.storage.local
: localstorage();

/**
Expand Down Expand Up @@ -148,7 +148,6 @@ function save(namespaces) {
*/

function load() {
var r;
try {
return exports.storage.debug;
} catch(e) {}
Expand Down

0 comments on commit 1c625d4

Please sign in to comment.