Lint getDefaultValue

pull/21833/head
Jorik Schellekens 2020-04-28 15:55:26 +01:00
parent 4e6748416c
commit 132a753deb
1 changed files with 2 additions and 1 deletions

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.");