Skip to content

Commit

Permalink
fixes #1169 (#1533)
Browse files Browse the repository at this point in the history
* fixes #1169

* consolidate trim

Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com>

Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com>
  • Loading branch information
dr-bonez and Blu-J authored Jun 14, 2022
1 parent 90e09c8 commit d947c2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/net/tor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ impl TorControllerInner {
.get_info("onions/current")
.await?
.lines()
.map(|l| l.trim().parse().with_kind(ErrorKind::Tor))
.map(|l| l.trim())
.filter(|l| !l.is_empty())
.map(|l| l.parse().with_kind(ErrorKind::Tor))
.collect()
}
}
Expand Down

0 comments on commit d947c2d

Please sign in to comment.