Skip to content

Commit

Permalink
Drop one level of nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp committed Aug 30, 2023
1 parent 0f6b15a commit d0c76bc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions shell/platform/embedder/tests/embedder_assertions.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ inline bool operator==(const FlutterSoftwareBackingStore2& a,
}

inline bool operator==(const FlutterRegion& a, const FlutterRegion& b) {
if (a.struct_size == b.struct_size && a.rects_count == b.rects_count) {
for (size_t i = 0; i < a.rects_count; i++) {
if (!(a.rects[i] == b.rects[i])) {
return false;
}
if (a.struct_size != b.struct_size || a.rects_count != b.rects_count) {
return false;
}
for (size_t i = 0; i < a.rects_count; i++) {
if (!(a.rects[i] == b.rects[i])) {
return false;
}
return true;
}
return false;
return true;
}

inline bool operator==(const FlutterBackingStorePresentInfo& a,
Expand Down

0 comments on commit d0c76bc

Please sign in to comment.