Coding Standards: Move assignment out of condition in `js/media/views/settings.js`.

Props ankitmaru.
Fixes #49107.

git-svn-id: https://develop.svn.wordpress.org/trunk@47029 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-01-02 12:00:11 +00:00
parent f4346b9da6
commit aaee49fb63
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ Settings = View.extend(/** @lends wp.media.view.Settings.prototype */{
// If the setting has a corresponding user setting,
// update that as well.
if ( userSetting = $setting.data('userSetting') ) {
userSetting = $setting.data('userSetting');
if ( userSetting ) {
window.setUserSetting( userSetting, value );
}
},