mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-22 22:50:11 +01:00
refactor: replace statement lambda with expression lambda
This commit is contained in:
@@ -293,9 +293,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re
|
||||
keys.push("p42");
|
||||
keys.push("hof");
|
||||
|
||||
when(keyGenerator.createKey()).then((InvocationOnMock invocation) -> {
|
||||
return keys.pop();
|
||||
});
|
||||
when(keyGenerator.createKey()).then((InvocationOnMock invocation) -> keys.pop());
|
||||
|
||||
// create repository manager
|
||||
RepositoryManager repositoryManager = createRepositoryManager(false, keyGenerator);
|
||||
|
||||
Reference in New Issue
Block a user