Prettier
Andrew Clark committed
Jan 21, 2022 at 09:59 UTC
ca143e18d83dcc57d7133d8859e0fc06df39b9f0
1 file changed
+2
-8
packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js
+2
-8
@@ -213,10 +213,7 @@ function renameStyle(
213
instance.setNativeProps({style: newStyle});
214
} else if (isArray(style)) {
215
const lastIndex = style.length - 1;
216
- if (
217
- typeof style[lastIndex] === 'object' &&
218
- !isArray(style[lastIndex])
219
- ) {
216
+ if (typeof style[lastIndex] === 'object' && !isArray(style[lastIndex])) {
217
customStyle = shallowClone(style[lastIndex]);
218
delete customStyle[oldName];
219
if (newName) {
@@ -299,10 +296,7 @@ function setStyle(
296
instance.setNativeProps({style: newStyle});
297
} else if (isArray(style)) {
298
const lastLength = style.length - 1;
302
- if (
303
- typeof style[lastLength] === 'object' &&
304
- !isArray(style[lastLength])
305
- ) {
299
+ if (typeof style[lastLength] === 'object' && !isArray(style[lastLength])) {
300
agent.overrideValueAtPath({
301
type: 'props',
302
id,