Skip to content

Commit

Permalink
Merge pull request #645 from sul-dlss/DarkValidator#invalid_files-mor…
Browse files Browse the repository at this point in the history
…e-concise
  • Loading branch information
mjgiarlo authored Nov 8, 2023
2 parents 35ef3bd + 817b45b commit 95e6e2c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/cocina/models/validators/dark_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ def dro?
end

def invalid_files
@invalid_files ||=
[].tap do |invalid_files|
files.each do |file|
invalid_files << file if invalid?(file)
end
end
@invalid_files ||= files.select { |file| invalid?(file) }
end

def invalid_filenames
Expand Down

0 comments on commit 95e6e2c

Please sign in to comment.