Skip to content

Commit

Permalink
return/expect string for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lsat12357 committed Dec 16, 2021
1 parent 7d46e25 commit 6927565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hyrax/migrator/preflight_checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def cpds?

def visibility?
result = @results.delete :visibility
@counters[:visibility] += 1 unless result.value? 'open'
@counters[:visibility] += 1 unless result.include? 'open'
return unless result.include? 'error'

concat_errors(result)
Expand Down
2 changes: 1 addition & 1 deletion lib/hyrax/migrator/visibility_lookup_preflight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def lookup_visibility
result = lookup(read_groups)
return 'error: read_groups does not agree with access_restrictions' unless comparison_check(result)

result
result[:visibility]
end

private
Expand Down

0 comments on commit 6927565

Please sign in to comment.