Appease the linter

Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Travis Ralston 2017-11-05 15:37:06 -07:00
parent 10519f9465
commit 781b94c8f4
9 changed files with 14 additions and 13 deletions

View file

@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import Promise from "bluebird";
/**
* Represents the base class for all level handlers. This class performs no logic
* and should be overridden.
@ -28,7 +30,8 @@ export default class SettingsHandler {
* @returns {*} The setting value, or null if not found.
*/
getValue(settingName, roomId) {
throw new Error("Operation not possible: getValue was not overridden");
console.error("Invalid operation: getValue was not overridden");
return null;
}
/**
@ -43,7 +46,8 @@ export default class SettingsHandler {
* @returns {Promise} Resolves when the setting has been saved.
*/
setValue(settingName, roomId, newValue) {
throw new Error("Operation not possible: setValue was not overridden");
console.error("Invalid operation: setValue was not overridden");
return Promise.reject();
}
/**