Skip to content

Commit 2d4ebf5

Browse files
committed
refactor: use positive condition
1 parent 6590313 commit 2d4ebf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/cpp/react/renderer/components/safeareacontext/RNCSafeAreaViewShadowNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ inline Style::Length valueFromEdges(
1616
Style::Length edge,
1717
Style::Length axis,
1818
Style::Length defaultValue) {
19-
if (!edge.isUndefined()) {
19+
if (edge.isDefined()) {
2020
return edge;
2121
}
22-
if (!axis.isUndefined()) {
22+
if (axis.isDefined()) {
2323
return axis;
2424
}
2525
return defaultValue;

0 commit comments

Comments
 (0)