remove unnecessary duplicate logic (https://github.com/woocommerce/woocommerce-admin/pull/2971)
This commit is contained in:
parent
b129dab7b6
commit
e4817567e7
|
@ -87,6 +87,5 @@ export function getSetting( name, fallback = false, filter = val => val ) {
|
|||
* ensure it's a number)
|
||||
*/
|
||||
export function setSetting( name, value, filter = val => val ) {
|
||||
value = filter( value );
|
||||
allSettings[ name ] = filter( value );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue