mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
Correct usage of RepositoryNotFoundException
This commit is contained in:
@@ -61,8 +61,7 @@ public final class HealthChecker {
|
||||
Repository repository = repositoryManager.get(id);
|
||||
|
||||
if (repository == null) {
|
||||
throw new RepositoryNotFoundException(
|
||||
"could not find repository with id ".concat(id));
|
||||
throw new RepositoryNotFoundException(id);
|
||||
}
|
||||
|
||||
doCheck(repository);
|
||||
|
||||
Reference in New Issue
Block a user