1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibFileSystem+Everywhere: Return ByteString current_working_directory()

That is, return it *from* current_working_directory(), but I didn't have
room. :^)
This commit is contained in:
Sam Atkins 2024-01-15 16:01:39 +00:00 committed by Sam Atkins
parent a7fbb7fd0b
commit fb644d08ac
4 changed files with 5 additions and 6 deletions

View file

@ -142,7 +142,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
if (auto error_or_cwd = FileSystem::current_working_directory(); initial_location.is_empty() && !error_or_cwd.is_error())
initial_location = error_or_cwd.release_value().to_byte_string();
initial_location = error_or_cwd.release_value();
if (initial_location.is_empty())
initial_location = Core::StandardPaths::home_directory();