refactor
This commit is contained in:
4
support/3rd_party/src/utils/file.cpp
vendored
4
support/3rd_party/src/utils/file.cpp
vendored
@ -254,6 +254,10 @@ auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
|
||||
|
||||
try {
|
||||
auto abs_path = utils::path::absolute(path);
|
||||
if (not is_file(abs_path)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::ifstream file_stream{
|
||||
abs_path.c_str(),
|
||||
std::ios_base::binary | std::ios::in,
|
||||
|
Reference in New Issue
Block a user