Skip to content

Commit

Permalink
SpotlessCheck formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkomlodi committed Oct 27, 2023
1 parent c42d198 commit 2dd1ecb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ private ResponseEntity<GenericVulnerabilityResponseBean<String>> invalidUrlRespo
HttpStatus.OK);
} else {
return new ResponseEntity<>(
new GenericVulnerabilityResponseBean<>(
getResponseForURLConnection(u), true),
HttpStatus.OK);
new GenericVulnerabilityResponseBean<>(
getResponseForURLConnection(u), true),
HttpStatus.OK);
}
} else {
return invalidUrlResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ void each() throws IOException {
SSRFVulnerability ssrfSpy = spy(new SSRFVulnerability(GIST_ID));
// mocks network calls
doReturn(GIST_URL_CONTENT).when(ssrfSpy).getResponseForURLConnection(eq(new URL(GIST_URL)));
doReturn(OTHER_URL_CONTENT).when(ssrfSpy).getResponseForURLConnection(eq(new URL(OTHER_URL)));
doReturn(OTHER_URL_CONTENT)
.when(ssrfSpy)
.getResponseForURLConnection(eq(new URL(OTHER_URL)));
ssrfVulnerability = ssrfSpy;
}

Expand Down

0 comments on commit 2dd1ecb

Please sign in to comment.