Skip to content

Commit

Permalink
Update bridge.rs
Browse files Browse the repository at this point in the history
prevent unwrap for None on server.enabled
  • Loading branch information
notseanray committed Jun 20, 2023
1 parent 1815536 commit 1bb75e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MAX_PIPE_LENGTH: usize = 8000;
// we need to send anything to the clients
#[inline(always)]
pub(crate) async fn update_messages(server: &mut Bridge, pattern: &Regex) -> Option<String> {
if server.enabled? {
if server.enabled == None {
return None;
}
let file_path: String = format!("/tmp/{}-taurus", server.name);
Expand Down

0 comments on commit 1bb75e7

Please sign in to comment.