Skip to content

Commit

Permalink
chore: Improve Haddock of isVersionConflict
Browse files Browse the repository at this point in the history
Describe which HTTP status code we're checking against.
  • Loading branch information
supersven committed Nov 5, 2024
1 parent 37fd4ff commit d6d914a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Bloodhound/Internal/Client/BHRequest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ eitherDecodeResponse ::
eitherDecodeResponse = eitherDecode . responseBody . getResponse

-- | Was there an optimistic concurrency control conflict when
-- indexing a document?
-- indexing a document? (Check '409' status code.)
isVersionConflict :: BHResponse parsingContext a -> Bool
isVersionConflict = statusCheck (== 409)

Expand Down

0 comments on commit d6d914a

Please sign in to comment.