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:
parent
f4346b9da6
commit
aaee49fb63
@ -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 );
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user