Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-ot committed Apr 27, 2023
1 parent d83c929 commit 84eb447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/mockito/ArgumentMatchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,10 @@ public static <T> T assertArg(Consumer<T> consumer) {
*/
public static <T> T assertArg(ThrowingConsumer<T> consumer) {
return argThat(
argument -> {
consumer.accept(argument);
return true;
});
argument -> {
consumer.accept(argument);
return true;
});
}

/**
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/mockito/ThrowingConsumer.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito;

import java.util.function.Consumer;
Expand Down

0 comments on commit 84eb447

Please sign in to comment.