Skip to content

Commit

Permalink
Merge pull request #313 from shachlanAmazon/fix-enum
Browse files Browse the repository at this point in the history
Exhaustive check the command enum
  • Loading branch information
shachlanAmazon authored Jul 16, 2023
2 parents 5942377 + 4045ae9 commit 776fc30
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 776fc30

Please sign in to comment.