Merge "libsnapshot: Fix typo in nullptr check"

This commit is contained in:
Treehugger Robot 2019-09-16 04:52:31 +00:00 committed by Gerrit Code Review
commit 17438477cb
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ static std::unique_ptr<Extent> Intersect(Extent* target_extent, Extent* existing
// Convert target_extent and existing_extent to linear extents. Zero extents
// doesn't matter and doesn't result in any intersection.
auto existing_linear_extent = existing_extent->AsLinearExtent();
if (!existing_extent) return nullptr;
if (!existing_linear_extent) return nullptr;
auto target_linear_extent = target_extent->AsLinearExtent();
if (!target_linear_extent) return nullptr;