From ccce284a5b937acffe749b9689f57b9f9e36a587 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 19 Jan 2016 11:31:47 -0800 Subject: [PATCH] Clean up no-empty lint errors --- script/eslintrc-spec.json | 3 --- spec/api-browser-window-spec.js | 1 + spec/api-protocol-spec.js | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/script/eslintrc-spec.json b/script/eslintrc-spec.json index 3a4fbe2c1281..5aa9df265d6b 100644 --- a/script/eslintrc-spec.json +++ b/script/eslintrc-spec.json @@ -1,7 +1,4 @@ { - "rules": { - "no-empty": 0 - }, "env": { "jquery": true, "mocha": true diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 50a98ed38ce6..494aff9a6d81 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -470,6 +470,7 @@ describe('browser-window module', function() { fs.rmdirSync(path.join(savePageDir, 'save_page_files')); fs.rmdirSync(savePageDir); } catch (e) { + // Ignore error } }); diff --git a/spec/api-protocol-spec.js b/spec/api-protocol-spec.js index f0f19ecc5fb7..d30252f9b562 100644 --- a/spec/api-protocol-spec.js +++ b/spec/api-protocol-spec.js @@ -49,7 +49,7 @@ describe('protocol module', function() { callback(text); return callback(); } catch (error1) { - + // Ignore error } }; return protocol.registerStringProtocol(protocolName, doubleHandler, function(error) { @@ -589,7 +589,7 @@ describe('protocol module', function() { callback(text); return callback(); } catch (error1) { - + // Ignore error } }; return protocol.interceptStringProtocol('http', doubleHandler, function(error) {