forked from lix-project/lix
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 a new issue