Skip to content

Commit ca143e1

Browse files
committed
Prettier
1 parent 26baf6a commit ca143e1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,7 @@ function renameStyle(
213213
instance.setNativeProps({style: newStyle});
214214
} else if (isArray(style)) {
215215
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])) {
220217
customStyle = shallowClone(style[lastIndex]);
221218
delete customStyle[oldName];
222219
if (newName) {
@@ -299,10 +296,7 @@ function setStyle(
299296
instance.setNativeProps({style: newStyle});
300297
} else if (isArray(style)) {
301298
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])) {
306300
agent.overrideValueAtPath({
307301
type: 'props',
308302
id,

0 commit comments

Comments
 (0)