mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
du: remove condition with identical if/else blocks
This commit is contained in:
+1
-10
@@ -719,18 +719,9 @@ fn du_regular(
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
// Check if this is the "too many symlinks" error we want to catch
|
||||
if e.kind() == std::io::ErrorKind::InvalidData
|
||||
&& e.to_string().contains("Too many levels")
|
||||
{
|
||||
print_tx.send(Err(e.map_err_context(
|
||||
print_tx.send(Err(e.map_err_context(
|
||||
|| translate!("du-error-cannot-access", "path" => entry_path.quote()),
|
||||
)))?;
|
||||
} else {
|
||||
print_tx.send(Err(e.map_err_context(
|
||||
|| translate!("du-error-cannot-access", "path" => entry_path.quote()),
|
||||
)))?;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user