From 9f3c65ed39604d7c6a1c4899c4397af2c1ad7825 Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Thu, 1 Sep 2022 12:20:37 -0600 Subject: [PATCH] minor update, https://github.com/phetsims/chipper/issues/1240 --- js/preferences/PreferencesModel.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/preferences/PreferencesModel.ts b/js/preferences/PreferencesModel.ts index 4609c051..9f8549fa 100644 --- a/js/preferences/PreferencesModel.ts +++ b/js/preferences/PreferencesModel.ts @@ -172,8 +172,7 @@ export default class PreferencesModel extends PhetioObject { public readonly inputModel: InputModel; public readonly localizationModel: LocalizationModel; - public constructor( providedOptions?: PreferencesModelOptions ) { - providedOptions = providedOptions || {}; + public constructor( providedOptions: PreferencesModelOptions = {} ) { // initialize-globals uses package.json to determine defaults for features enabled by the sim and those defaults // can be overwritten by query parameter. So phet.chipper.queryParameters contains an accurate representation of