Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
truhacevkir committed Nov 17, 2023
1 parent c797a2f commit 4770d24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ private static boolean notEmptyEvent(KeyBatchRequestEvent event) {
return nonNull(event) && nonNull(event.getStartMarker());
}

private static ListObjectsV2Request createRequest(String startMarker, String s3Location) {
private static ListObjectsV2Request createRequest(String startMarker, String location) {
return ListObjectsV2Request.builder()
.bucket(INPUT_BUCKET)
.prefix(s3Location + DELIMITER)
.prefix(location + DELIMITER)
.delimiter(DELIMITER)
.startAfter(startMarker)
.maxKeys(MAX_KEYS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private List<BulkResponse> indexBatch(List<IndexDocument> indexDocuments) {
}

/**
* Resource/Publication only should be validated when indexing. ImportCandidate
* Resources/Publications only should be validated when indexing. ImportCandidates are not validated.
*/

private boolean isValid(IndexDocument document) {
Expand Down

0 comments on commit 4770d24

Please sign in to comment.