chore (backend-rs): clean redundant match expression
This commit is contained in:
parent
2d8f4b945f
commit
5c6f1c818a
1 changed files with 1 additions and 4 deletions
|
@ -51,10 +51,7 @@ pub fn publish_to_stream(
|
|||
format!(
|
||||
"{{ \"type\": \"{}\", \"body\": {} }}",
|
||||
kind,
|
||||
match value {
|
||||
Some(v) => v,
|
||||
None => "null".to_string(),
|
||||
}
|
||||
value.unwrap_or("null".to_string()),
|
||||
)
|
||||
} else {
|
||||
value.ok_or(Error::ValueError("Invalid streaming message".to_string()))?
|
||||
|
|
Loading…
Reference in a new issue