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(); |         checkInterrupt(); | ||||||
| 
 | 
 | ||||||
|         auto path = dir + "/" + i.name;  |         auto path = dir + "/" + i.name;  | ||||||
|         auto type = getFileType(path); |         auto type = i.type == DT_UNKNOWN ? getFileType(path) : i.type; | ||||||
| 
 | 
 | ||||||
|         if (type == DT_LNK) { |         if (type == DT_LNK) { | ||||||
|             auto link = readLink(path); |             auto link = readLink(path); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue