mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 06:54:03 +00:00
Use += instead of temporaries
clang-tidy explains this is better. I hate C++.
This commit is contained in:
parent
633fd5000e
commit
3991af9ed6
1 changed files with 3 additions and 1 deletions
|
@ -691,7 +691,9 @@ static int path_resolve(parser_t &parser, io_streams_t &streams, int argc, const
|
|||
real = normalize_path(*real, false);
|
||||
break;
|
||||
}
|
||||
rest = wbasename(next) + L'/' + rest;
|
||||
rest = wbasename(next);
|
||||
rest += L'/';
|
||||
rest += rest;
|
||||
}
|
||||
if (!real) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue