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

kill: removed unnecessary calls to print in print_signals

This commit is contained in:
Haisham 2024-04-07 23:01:47 +05:00 committed by Ben Wiederhake
parent 6e4c9119fb
commit 843407faf8

View file

@ -159,13 +159,9 @@ fn print_signal(signal_name_or_value: &str) -> UResult<()> {
}
fn print_signals() {
for (idx, signal) in ALL_SIGNALS.iter().enumerate() {
if idx > 0 {
println!();
}
print!("{signal}");
for signal in ALL_SIGNALS.iter() {
println!("{signal}");
}
println!();
}
fn list(arg: Option<&String>) -> UResult<()> {