summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-08-17 18:35:40 +0800
committerHaishan <[email protected]>2019-08-29 22:04:57 +0800
commitd97017d74c6b82beeca4f32f62700037136c5b8c (patch)
tree17b0beb8a0b4b4b3047bff4da0c30e1523b3a848 /src/components
parentc6fee7bbd4967facbdc087f8e0e26f6863535b1d (diff)
build: upgrade eslint
Diffstat (limited to 'src/components')
-rw-r--r--src/components/APIConfig.js2
-rw-r--r--src/components/Config.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/components/APIConfig.js b/src/components/APIConfig.js
index 3c5d62d..236bd1d 100644
--- a/src/components/APIConfig.js
+++ b/src/components/APIConfig.js
@@ -39,6 +39,8 @@ function APIConfig2() {
case 'secret':
setSecret(value);
break;
+ default:
+ throw new Error(`unknown input name ${name}`);
}
};
diff --git a/src/components/Config.js b/src/components/Config.js
index b47d220..a15e858 100644
--- a/src/components/Config.js
+++ b/src/components/Config.js
@@ -143,6 +143,8 @@ function Config({ configs }) {
updateConfigs({ [name]: num });
break;
}
+ default:
+ throw new Error(`unknown input name ${name}`);
}
}