Fix linting errors.

This commit is contained in:
Zhongyi Tong
2017-07-03 02:01:49 +08:00
parent 45523f41aa
commit 2fcc5d9649
8 changed files with 80 additions and 80 deletions

View File

@@ -17,8 +17,8 @@ class ConfigUtil {
return instance;
}
getConfigItem(key, defaultValue=null) {
let value = this.db.getData('/')[key];
getConfigItem(key, defaultValue = null) {
const value = this.db.getData('/')[key];
if (value === undefined) {
this.setConfigItem(key, value);
return defaultValue;