mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
nix-collect-garbage: Remove redundant call to getFileType
This commit is contained in:
parent
a1c1bf3a56
commit
8d813fe3e0
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue