We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63265b commit f8d06ecCopy full SHA for f8d06ec
src/uu/rmdir/src/rmdir.rs
@@ -71,7 +71,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
71
// Strip the trailing slash or .symlink_metadata() will follow the symlink
72
while bytes.ends_with(b"/") {
73
bytes = &bytes[..bytes.len() - 1];
74
- };
+ }
75
let no_slash: &Path = OsStr::from_bytes(&bytes).as_ref();
76
if no_slash.is_symlink() && points_to_directory(no_slash).unwrap_or(true) {
77
show_error!(
0 commit comments