Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite authored and nevilm-lt committed Apr 22, 2022
1 parent 3df8479 commit 59ba9b6
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 59ba9b6

Please sign in to comment.