Commit c7e5ee98 authored by Michal Čihař's avatar Michal Čihař
Browse files

Simplify condition

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 28a6e688
......@@ -207,7 +207,7 @@ def update_index_unit(unit, source=True):
update_source_unit_index(writer, unit)
# Update target
if unit.target != '':
if unit.target:
index = get_target_index(unit.translation.language.code)
with AsyncWriter(index) as writer:
update_target_unit_index(writer, unit)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment