Skip to content

Commit

Permalink
Small fix for EndpointSpecificConfigurationServiceImpl class.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchizhevsky committed Dec 15, 2016
1 parent 3097964 commit c8fc7af
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -85,8 +85,8 @@ public Optional<EndpointSpecificConfigurationDto> findActiveConfigurationByEndpo
public Optional<EndpointSpecificConfigurationDto> deleteActiveConfigurationByEndpointKeyHash(byte[] endpointKeyHash) {
Optional<EndpointSpecificConfigurationDto> configuration = findActiveConfigurationByEndpointKeyHash(endpointKeyHash);
if (configuration.isPresent()) {
int profileSchemaVersion = configuration.get().getConfigurationSchemaVersion();
endpointSpecificConfigurationDao.removeByEndpointKeyHashAndConfigurationVersion(endpointKeyHash, profileSchemaVersion);
int confSchemaVersion = configuration.get().getConfigurationSchemaVersion();
endpointSpecificConfigurationDao.removeByEndpointKeyHashAndConfigurationVersion(endpointKeyHash, confSchemaVersion);
}
return configuration;
}
Expand Down

0 comments on commit c8fc7af

Please sign in to comment.