summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-07-24 14:02:38 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-07-24 14:40:19 -0300
commitdce947625e036a18881eeb6df20c1fcd309efa62 (patch)
tree8ede346647e5ecf18f0efd12384aaf57de1cdb26
parentb90ab861b991054c00c832826ff5995caa807ed9 (diff)
downloadmullvadvpn-dce947625e036a18881eeb6df20c1fcd309efa62.tar.xz
mullvadvpn-dce947625e036a18881eeb6df20c1fcd309efa62.zip
Ignore request to redact empty strings
-rw-r--r--mullvad-problem-report/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs
index eeab6bd346..63c4c5af20 100644
--- a/mullvad-problem-report/src/main.rs
+++ b/mullvad-problem-report/src/main.rs
@@ -277,7 +277,9 @@ struct ProblemReport {
impl ProblemReport {
/// Creates a new problem report with system information. Logs can be added with `add_log`.
/// Logs will have all strings in `redact_custom_strings` removed from them.
- pub fn new(redact_custom_strings: Vec<String>) -> Self {
+ pub fn new(mut redact_custom_strings: Vec<String>) -> Self {
+ redact_custom_strings.retain(|redact| !redact.is_empty());
+
ProblemReport {
metadata: collect_metadata(),
logs: Vec::new(),