mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Use += instead of temporaries
clang-tidy explains this is better. I hate C++.
This commit is contained in:
parent
633fd5000e
commit
3991af9ed6
|
@ -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 New Issue
Block a user