Lint getDefaultValue

This commit is contained in:
Jorik Schellekens 2020-04-28 15:55:26 +01:00
parent 4e6748416c
commit 132a753deb

View file

@ -373,9 +373,10 @@ export default class SettingsStore {
/**
* Gets the default value of a setting.
* @param {string} settingName The name of the setting to read the value of.
* @param {String} roomId The room ID to read the setting value in, may be null.
* @return {*} The default value
*/
static getDefaultValue(settingName, roomId = null, excludeDefault = false) {
static getDefaultValue(settingName) {
// Verify that the setting is actually a setting
if (!SETTINGS[settingName]) {
throw new Error("Setting '" + settingName + "' does not appear to be a setting.");