Skip to content

Commit

Permalink
Add Suppress annotation to verifyNoUnmatchedRequests
Browse files Browse the repository at this point in the history
This change adds the @Suppress("ThrowsCount") annotation to the verifyNoUnmatchedRequests function to suppress warnings about the number of exceptions thrown. This improves code readability and developer experience by reducing warning noise in the codebase.
  • Loading branch information
Konstantin Pavlov authored and Konstantin Pavlov committed Nov 10, 2024
1 parent a185638 commit acd358e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ abstract class BaseWiremock(
*
* @throws VerificationException if there are unmatched requests or near misses.
*/
@Suppress("ThrowsCount")
fun verifyNoUnmatchedRequests() {
val unmatchedRequests = mock.findAllUnmatchedRequests()
if (unmatchedRequests.isEmpty()) {
Expand Down

0 comments on commit acd358e

Please sign in to comment.