Removed unwrap in request handler

This commit is contained in:
p11 2023-07-16 16:44:47 +02:00
parent 710df5f6bc
commit 29f89fd325

View File

@ -132,7 +132,7 @@ impl Context {
let mut text_buf = Vec::new();
convert(decoded_text.lines(), &mut text_buf);
let text = std::str::from_utf8(text_buf.as_slice())
.unwrap()
.unwrap_or_default()
.to_string();
local_comments.push(Comment { name, text });