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:
parent
b87e1f5676
commit
4760b1f340
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue