Commit dd37b465 authored by Max Kellermann's avatar Max Kellermann

storage/{composite,local}: fix -Wnonnull warnings

parent e2d2bb87
...@@ -332,7 +332,7 @@ CompositeStorage::MapToRelativeUTF8(std::string_view uri) const noexcept ...@@ -332,7 +332,7 @@ CompositeStorage::MapToRelativeUTF8(std::string_view uri) const noexcept
} }
if (!root.MapToRelativeUTF8(relative_buffer, uri)) if (!root.MapToRelativeUTF8(relative_buffer, uri))
return nullptr; return {};
return relative_buffer; return relative_buffer;
} }
...@@ -106,8 +106,6 @@ LocalStorage::MapUTF8(std::string_view uri_utf8) const noexcept ...@@ -106,8 +106,6 @@ LocalStorage::MapUTF8(std::string_view uri_utf8) const noexcept
AllocatedPath AllocatedPath
LocalStorage::MapFSOrThrow(std::string_view uri_utf8) const LocalStorage::MapFSOrThrow(std::string_view uri_utf8) const
{ {
assert(uri_utf8 != nullptr);
if (uri_utf8.empty()) if (uri_utf8.empty())
return base_fs; return base_fs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment