fix(metadata_v2): remove useless cast

This commit is contained in:
Marcus Holland-Moritz 2025-04-27 17:47:26 +02:00
parent 418e35bede
commit f7a91bc75d

View File

@ -1267,7 +1267,7 @@ nlohmann::json metadata_v2_data::as_json(dir_entry_view const& entry) const {
obj["inode"] = inode;
if (inode > 0) {
obj["name"] = std::string(entry.name());
obj["name"] = entry.name();
}
switch (posix_file_type::from_mode(mode)) {