mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Utilities: Remove unused variable in mktemp
This commit is contained in:
parent
ff23426b6e
commit
9630fe3ebc
1 changed files with 0 additions and 1 deletions
|
@ -77,7 +77,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto const* cwd_ptr = getcwd(nullptr, 0);
|
||||
target_directory = StringView { cwd_ptr, strlen(cwd_ptr) };
|
||||
} else {
|
||||
LexicalPath template_path(file_template);
|
||||
char const* env_directory = getenv("TMPDIR");
|
||||
target_directory = env_directory && *env_directory ? StringView { env_directory, strlen(env_directory) } : "/tmp"sv;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue