From ca143e18d83dcc57d7133d8859e0fc06df39b9f0 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Fri, 21 Jan 2022 09:59:11 -0500 Subject: [PATCH] Prettier --- .../NativeStyleEditor/setupNativeStyleEditor.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js b/packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js index 561068bbb1..6a7921489c 100644 --- a/packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js +++ b/packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js @@ -213,10 +213,7 @@ function renameStyle( instance.setNativeProps({style: newStyle}); } else if (isArray(style)) { const lastIndex = style.length - 1; - if ( - typeof style[lastIndex] === 'object' && - !isArray(style[lastIndex]) - ) { + if (typeof style[lastIndex] === 'object' && !isArray(style[lastIndex])) { customStyle = shallowClone(style[lastIndex]); delete customStyle[oldName]; if (newName) { @@ -299,10 +296,7 @@ function setStyle( instance.setNativeProps({style: newStyle}); } else if (isArray(style)) { const lastLength = style.length - 1; - if ( - typeof style[lastLength] === 'object' && - !isArray(style[lastLength]) - ) { + if (typeof style[lastLength] === 'object' && !isArray(style[lastLength])) { agent.overrideValueAtPath({ type: 'props', id,