Use file::IsAbsolutePath consistently

PiperOrigin-RevId: 302073992
Change-Id: Ib3b9fbedc6e85a1abd87cbc683d8a8c3dc3daf87
This commit is contained in:
Anna Sapek 2020-03-20 12:07:58 -07:00 committed by Copybara-Service
parent 604b671d12
commit 4665335604

View File

@ -179,7 +179,7 @@ absl::Status Mounts::Insert(absl::string_view path,
std::string fixed_path = file::CleanPath(path);
if (!absl::StartsWith(fixed_path, "/")) {
if (!file::IsAbsolutePath(fixed_path)) {
return absl::InvalidArgumentError("Only absolute paths are supported");
}