Revert changes from previous commit

This commit is contained in:
Ryan Lue 2018-08-22 18:15:10 +08:00 committed by Ryan Lue
parent 5888f1ba44
commit b902fe10ae

View file

@ -43,7 +43,7 @@ module Import
end
def display_path(folder)
display_name = folder.display_name.utf8_encode
display_name = folder.display_name.utf8_encode(fallback: :read_as_sanitized_binary)
parent_folder = find(folder.parent_folder_id)
return display_name if parent_folder.blank?
@ -51,8 +51,6 @@ module Import
"#{display_path(parent_folder)} -> #{display_name}"
rescue Viewpoint::EWS::EwsError
display_name
rescue EncodingError
'(undetectable encoding)'
end
private