1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 20:47:46 +00:00

chown: remove unnecessary return

This commit is contained in:
Daniel Hofstetter 2023-10-06 07:49:36 +02:00 committed by GitHub
parent b87e1f5676
commit 4760b1f340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ fn parse_uid(user: &str, spec: &str, sep: char) -> UResult<Option<u32>> {
// but the input contains a '.' but not a ':' // but the input contains a '.' but not a ':'
// we might have something like username.groupname // we might have something like username.groupname
// So, try to parse it this way // So, try to parse it this way
return parse_spec(spec, '.').map(|(uid, _)| uid); parse_spec(spec, '.').map(|(uid, _)| uid)
} else { } else {
// It's possible that the `user` string contains a // It's possible that the `user` string contains a
// numeric user ID, in which case, we respect that. // numeric user ID, in which case, we respect that.