mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 23:32:28 +00:00
nix-collect-garbage: Remove redundant call to getFileType
This commit is contained in:
parent
a1c1bf3a56
commit
8d813fe3e0
@ -38,7 +38,7 @@ void removeOldGenerations(std::string dir)
|
||||
checkInterrupt();
|
||||
|
||||
auto path = dir + "/" + i.name;
|
||||
auto type = getFileType(path);
|
||||
auto type = i.type == DT_UNKNOWN ? getFileType(path) : i.type;
|
||||
|
||||
if (type == DT_LNK) {
|
||||
auto link = readLink(path);
|
||||
|
Loading…
Reference in New Issue
Block a user