diff --git a/time_tracker/src/main.rs b/time_tracker/src/main.rs index eb88a3a..b3a40f4 100644 --- a/time_tracker/src/main.rs +++ b/time_tracker/src/main.rs @@ -145,10 +145,8 @@ fn main() -> Result<(), Box> { now.day(), now.year() )); - } else { - if line != "" { + } else if !line.is_empty() { body_content.push(line.to_string()); - } } checked.retain(|val| val != &item); }