diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-10 15:44:16 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-14 15:09:11 +0200 |
commit | a9694ba06acc9ea225f83bbd31f93cbedec4ff0c (patch) | |
tree | a6ae896c965c6d99052167bba3ccbd22948730ca /src/other_tools/root_maps/content_git_map.cpp | |
parent | aee1a0c7df5b86c08c4ac3188b3635f8f9879129 (diff) | |
download | justbuild-a9694ba06acc9ea225f83bbd31f93cbedec4ff0c.tar.gz |
ArchiveOps: reduce verbosity in archive type enum
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r-- | src/other_tools/root_maps/content_git_map.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 0c991ef1..7f0b30e0 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -31,12 +31,10 @@ namespace { std::filesystem::path const& dst_dir) noexcept -> std::optional<std::string> { if (repo_type == "archive") { - return ArchiveOps::ExtractArchive( - ArchiveType::kArchiveTypeTar, archive, dst_dir); + return ArchiveOps::ExtractArchive(ArchiveType::Tar, archive, dst_dir); } if (repo_type == "zip") { - return ArchiveOps::ExtractArchive( - ArchiveType::kArchiveTypeZip, archive, dst_dir); + return ArchiveOps::ExtractArchive(ArchiveType::Zip, archive, dst_dir); } return "unrecognized repository type"; } |