mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
mypy: strict optional fixes.
This commit is contained in:
committed by
Tim Abbott
parent
2f227a97d3
commit
1761a3b1c1
@@ -192,9 +192,9 @@ def get_commits_content(commits_data, is_truncated=False):
|
||||
commits_content = u''
|
||||
for commit in commits_data[:COMMITS_LIMIT]:
|
||||
commits_content += COMMIT_ROW_TEMPLATE.format(
|
||||
commit_short_sha=get_short_sha(commit.get('sha')),
|
||||
commit_short_sha=get_short_sha(commit['sha']),
|
||||
commit_url=commit.get('url'),
|
||||
commit_msg=commit.get('message').partition('\n')[0]
|
||||
commit_msg=commit['message'].partition('\n')[0]
|
||||
)
|
||||
|
||||
if len(commits_data) > COMMITS_LIMIT:
|
||||
|
||||
Reference in New Issue
Block a user