Revert "fix(client): add an empty array to allow iterating over an array containing newline (#222)" (#225)

This reverts commit 77980b298a.
This commit is contained in:
Terry Zhuo 2020-09-12 01:56:20 +10:00 committed by GitHub
parent 77980b298a
commit 10d9135ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ class Translator:
data, response = self._translate(text, dest, src, kwargs)
# this code will be updated when the format is changed.
translated = ''.join([d[0] if d[0] else '' for d in data[0] or []])
translated = ''.join([d[0] if d[0] else '' for d in data[0]])
extra_data = self._parse_extra_data(data)