Skip to content

Commit

Permalink
tmpfiles.rs: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei authored and cgwalters committed Dec 12, 2023
1 parent a1ce86c commit 74cd63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/tmpfiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn save_tmpfile_entries(tmpfiles_dir: &Dir) -> Result<impl Iterator<Item = Strin
Some(
tmpfiles_dir
.read_to_string(name)
.unwrap()
.ok()?
.lines()
.filter(|s| !s.is_empty() && !s.starts_with('#'))
.map(|s| s.to_string())
Expand Down

0 comments on commit 74cd63d

Please sign in to comment.