do not print anything if no user id was found

This commit is contained in:
Irevoire 2021-10-13 19:38:14 +02:00 committed by marin postma
parent f7bb499c28
commit 9e1bba40f7
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
2 changed files with 6 additions and 2 deletions

View file

@ -126,7 +126,11 @@ Anonymous telemetry: \"Enabled\""
);
}
}
eprintln!("Unique User ID:\t\"{}\"", analytics);
let analytics = analytics.to_string();
if analytics != "" {
eprintln!("Unique User ID:\t\"{}\"", analytics);
}
eprintln!();