From a9694ba06acc9ea225f83bbd31f93cbedec4ff0c Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 10 Aug 2023 15:44:16 +0200 Subject: ArchiveOps: reduce verbosity in archive type enum --- src/other_tools/root_maps/content_git_map.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/other_tools/root_maps/content_git_map.cpp') 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 { 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"; } -- cgit v1.2.3