nix-collect-garbage: Remove redundant call to getFileType

This commit is contained in:
Eelco Dolstra 2015-05-21 14:09:34 +02:00
parent a1c1bf3a56
commit 8d813fe3e0

View file

@ -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);