Removed unwrap in request handler
This commit is contained in:
parent
710df5f6bc
commit
29f89fd325
@ -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 });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user