mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
HackStudio: Remove UTF-8 validation for project path
This commit is contained in:
parent
92b6edb35a
commit
6db4d3b898
|
@ -223,8 +223,7 @@ static ErrorOr<NonnullRefPtr<HackStudioWidget>> create_hack_studio_widget(bool m
|
||||||
if (pid_to_debug != -1 || mode_coredump)
|
if (pid_to_debug != -1 || mode_coredump)
|
||||||
project_path = "/usr/src/serenity";
|
project_path = "/usr/src/serenity";
|
||||||
else if (!raw_path_argument.is_null())
|
else if (!raw_path_argument.is_null())
|
||||||
// FIXME: Validation is unintentional, and should be removed when migrating to String.
|
project_path = raw_path_argument;
|
||||||
project_path = TRY(ByteString::from_utf8(raw_path_argument));
|
|
||||||
else if (auto last_path = last_opened_project_path(); last_path.has_value())
|
else if (auto last_path = last_opened_project_path(); last_path.has_value())
|
||||||
project_path = last_path.release_value();
|
project_path = last_path.release_value();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue