@@ -61,7 +61,7 @@ public ClientRepository(RealmRepository realmRepository) {
6161 public Optional <ClientRepresentation > searchByClientId (String realmName , String clientId ) {
6262 List <ClientRepresentation > foundClients = getResource (realmName ).findByClientId (Objects .requireNonNull (clientId ));
6363
64- return switch (foundClients ) {
64+ return switch (foundClients ) {
6565 case List <ClientRepresentation > list when list .isEmpty () -> Optional .empty ();
6666 case List <ClientRepresentation > list -> Optional .of (list .get (0 ));
6767 };
@@ -85,7 +85,7 @@ public Optional<ClientRepresentation> searchByName(String realmName, String name
8585 public ClientRepresentation getByClientId (String realmName , String clientId ) {
8686 Optional <ClientRepresentation > foundClients = searchByClientId (realmName , clientId );
8787
88- return switch (foundClients ) {
88+ return switch (foundClients ) {
8989 case Optional <ClientRepresentation > foundClient when foundClient .isEmpty () ->
9090 throw new KeycloakRepositoryException ("Cannot find client by clientId '%s'" , clientId );
9191 case Optional <ClientRepresentation > foundClient ->
@@ -96,7 +96,7 @@ public ClientRepresentation getByClientId(String realmName, String clientId) {
9696 public ClientRepresentation getByName (String realmName , String name ) {
9797 Optional <ClientRepresentation > foundClients = searchByName (realmName , name );
9898
99- return switch (foundClients ) {
99+ return switch (foundClients ) {
100100 case Optional <ClientRepresentation > foundClient when foundClient .isEmpty () ->
101101 throw new KeycloakRepositoryException ("Cannot find client by name '%s'" , name );
102102 case Optional <ClientRepresentation > foundClient ->
0 commit comments