Skip to content

Commit b879d3b

Browse files
authored
make it clear we mean to be returning nil
1 parent 92a393e commit b879d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oai/client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def parse_date(value)
331331
# Regex is from WebCollab:
332332
# http://webcollab.sourceforge.net/unicode.html
333333
def strip_invalid_utf_8_chars(xml)
334-
return xml unless xml
334+
return nil unless xml
335335

336336
# If it's in a specific encoding other than BINARY, it may trigger
337337
# an exception to try to gsub these illegal bytes. Temporarily

0 commit comments

Comments
 (0)