Skip to content

Commit

Permalink
Solved sonar issues
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Middelburg <[email protected]>
  • Loading branch information
harrymiddelburgetall committed May 27, 2024
1 parent 7237027 commit f03c756
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ void updateFirmwareWhenFirmwareFileNotInCacheAndNotValid() throws OsgpException
void updateFirmwareWhenFirmwareFileNotInCacheAndNotOnStore() throws OsgpException {

final byte[] firmwareFile = firmwareIdentification.getBytes();
final HashTypeDto sha256 = HashTypeDto.SHA256;

when(this.firmwareFileCachingRepository.isAvailable(firmwareIdentification)).thenReturn(false);
when(this.firmwareFileStoreService.readFirmwareFile(firmwareIdentification)).thenReturn(null);
Expand All @@ -244,7 +243,6 @@ void updateFirmwareWhenFirmwareFileNotInCacheAndNotOnStore() throws OsgpExceptio
void updateFirmwareWhenStoreThrowsException() throws OsgpException {

final byte[] firmwareFile = firmwareIdentification.getBytes();
final HashTypeDto sha256 = HashTypeDto.SHA256;
final String storeExceptionMessage = "firmware file store failed!";

when(this.firmwareFileCachingRepository.isAvailable(firmwareIdentification)).thenReturn(false);
Expand Down

0 comments on commit f03c756

Please sign in to comment.