Skip to content

Commit a6580b4

Browse files
committed
Allow for case where no readers are found.
1 parent cb4e1f9 commit a6580b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def self.exec(args, output: $stdout, option_parser: nil, messages: {}, **options
506506
end
507507

508508
if options[:statistics]
509-
options[:statistics][:reader] = @readers.first unless @readers.empty?
509+
options[:statistics][:reader] = @readers.first unless (@readers || []).empty?
510510
options[:statistics][:count] = @repository.count
511511
end
512512
end

0 commit comments

Comments
 (0)