1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

refactor(logname): simplify the code

This commit is contained in:
Sylvestre Ledru 2020-06-07 17:54:30 +02:00
parent 332dc5d2f2
commit 851e25d134

View file

@ -39,14 +39,10 @@ static LONG_HELP: &str = "";
pub fn uumain(args: Vec<String>) -> i32 {
app!(SYNTAX, SUMMARY, LONG_HELP).parse(args);
exec();
0
}
fn exec() {
match get_userlogin() {
Some(userlogin) => println!("{}", userlogin),
None => show_error!("no login name"),
}
0
}