Skip to content

Commit

Permalink
Bug fix: Location null-check in message text.
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindd committed Nov 6, 2023
1 parent 69cf93d commit 129aaa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ module UpdateHandlerFuncs =
logInfo logger $"Receive message type: {message.Type}"

match message.Text with
| text when message.Text <> "" ->
| text when (not (String.IsNullOrEmpty message.Text)) ->
// We use tryHead here just in case we get an empty
// response from the user
match text.Split(' ') |> Array.tryHead with
Expand Down

0 comments on commit 129aaa1

Please sign in to comment.