Skip to content

Commit

Permalink
[SERV-889] fixes for codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DRickard committed Nov 30, 2023
1 parent b9dc874 commit 4882791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/edu/ucla/library/iiif/fester/CsvParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ private void extractCollectionMetadata(final String... aRow) throws CsvParsingEx
* @throws CsvParsingException If there is trouble getting the necessary info from the CSV
*/
private void extractWorkMetadata(final String... aRow) throws CsvParsingException {
final Optional<String> parentIdOpt = getMetadata(aRow,
myCsvHeaders.hasIiifParentArkIndex() ? myCsvHeaders.getIiifParentArkIndex() :
final Optional<String> parentIdOpt = getMetadata(aRow,
myCsvHeaders.hasIiifParentArkIndex() ? myCsvHeaders.getIiifParentArkIndex() :
myCsvHeaders.getParentArkIndex());
final Optional<String> workIdOpt = getMetadata(aRow, myCsvHeaders.getItemArkIndex());
final Optional<String> labelOpt = getMetadata(aRow, myCsvHeaders.getTitleIndex());
Expand Down Expand Up @@ -282,8 +282,8 @@ private void extractWorkMetadata(final String... aRow) throws CsvParsingExceptio
* @throws CsvParsingException
*/
private void extractPageMetadata(final String... aRow) throws CsvParsingException {
final Optional<String> workIdOpt = getMetadata(aRow,
myCsvHeaders.hasIiifParentArkIndex() ? myCsvHeaders.getIiifParentArkIndex() :
final Optional<String> workIdOpt = getMetadata(aRow,
myCsvHeaders.hasIiifParentArkIndex() ? myCsvHeaders.getIiifParentArkIndex() :
myCsvHeaders.getParentArkIndex());

if (workIdOpt.isPresent()) {
Expand Down

0 comments on commit 4882791

Please sign in to comment.