mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🧹 disk: refactor with clang-tidy
This commit is contained in:
parent
4c23dccdcf
commit
743683ffcf
@ -11,7 +11,6 @@
|
|||||||
#include "gucc/zfs.hpp"
|
#include "gucc/zfs.hpp"
|
||||||
|
|
||||||
#include <algorithm> // for find_if
|
#include <algorithm> // for find_if
|
||||||
#include <filesystem> // for exists, is_directory
|
|
||||||
#include <ranges> // for ranges::*
|
#include <ranges> // for ranges::*
|
||||||
|
|
||||||
#include <ftxui/component/component.hpp> // for Renderer, Button
|
#include <ftxui/component/component.hpp> // for Renderer, Button
|
||||||
@ -25,7 +24,6 @@
|
|||||||
|
|
||||||
using namespace std::string_view_literals;
|
using namespace std::string_view_literals;
|
||||||
using namespace std::string_literals;
|
using namespace std::string_literals;
|
||||||
namespace fs = std::filesystem;
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@ -270,7 +268,7 @@ bool zfs_create_zpool(const std::string_view& partition, const std::string_view&
|
|||||||
|
|
||||||
// insert zpool name into config
|
// insert zpool name into config
|
||||||
auto zfs_zpool_names = std::get<std::vector<std::string>>(config_data["ZFS_ZPOOL_NAMES"]);
|
auto zfs_zpool_names = std::get<std::vector<std::string>>(config_data["ZFS_ZPOOL_NAMES"]);
|
||||||
zfs_zpool_names.push_back(pool_name.data());
|
zfs_zpool_names.emplace_back(pool_name.data());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user