Skip to content

Commit

Permalink
chown: remove unnecessary return
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker authored Oct 6, 2023
1 parent b87e1f5 commit 4760b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uu/chown/src/chown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn parse_uid(user: &str, spec: &str, sep: char) -> UResult<Option<u32>> {
// but the input contains a '.' but not a ':'
// we might have something like username.groupname
// So, try to parse it this way
return parse_spec(spec, '.').map(|(uid, _)| uid);
parse_spec(spec, '.').map(|(uid, _)| uid)
} else {
// It's possible that the `user` string contains a
// numeric user ID, in which case, we respect that.
Expand Down

0 comments on commit 4760b1f

Please sign in to comment.