Skip to content

Commit

Permalink
Exhaustive check the command enum
Browse files Browse the repository at this point in the history
  • Loading branch information
shachlanAmazon committed Jul 12, 2023
1 parent 2913487 commit 4045ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babushka-core/src/socket_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ fn get_command(request: &Command) -> Option<Cmd> {
.request_type
.enum_value_or(RequestType::InvalidRequest);
match request_enum {
RequestType::InvalidRequest => None,
RequestType::CustomCommand => Some(Cmd::new()),
RequestType::GetString => Some(cmd("GET")),
RequestType::SetString => Some(cmd("SET")),
_ => None,
}
}

Expand Down

0 comments on commit 4045ae9

Please sign in to comment.