Don't send a Zulip notification about 0 lines.

(imported from commit cc8ce4d95978264cd05bc26f77a5d770abdf5add)
This commit is contained in:
Tim Abbott 2014-01-16 18:36:19 -05:00
parent 2aef11b064
commit 775b9cc8bb

View file

@ -43,7 +43,9 @@ def process_lines(raw_lines, file_name):
continue
lines.append(line)
if len(lines) > 10:
if len(lines) == 0:
return
elif len(lines) > 10:
send_log_zulip(file_name, len(lines), lines[0:3], extra=", examples include")
else:
send_log_zulip(file_name, len(lines), lines)