mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +00:00
Userland: Avoid some now-unneeded explicit conversions to Bytes
This commit is contained in:
parent
e0bddbb65e
commit
c23060e21b
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/trflynn89
Commit: c23060e21b
Pull-request: https://github.com/SerenityOS/serenity/pull/23830
Reviewed-by: https://github.com/shannonbooth ✅
15 changed files with 39 additions and 40 deletions
|
@ -75,7 +75,7 @@ static ErrorOr<void> launch_server(ByteString const& socket_path, ByteString con
|
|||
|
||||
if (server_pid != 0) {
|
||||
auto server_pid_file = TRY(Core::File::open(pid_path, Core::File::OpenMode::Write));
|
||||
TRY(server_pid_file->write_until_depleted(ByteString::number(server_pid).bytes()));
|
||||
TRY(server_pid_file->write_until_depleted(ByteString::number(server_pid)));
|
||||
|
||||
TRY(Core::System::kill(getpid(), SIGTERM));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue