summary refs log tree commit diff
path: root/pylint.cfg
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-07-17 16:49:19 +0100
committerGitHub <noreply@github.com>2019-07-17 16:49:19 +0100
commit65c5592b8ed11e5ed4c3d6e29aa530d089c463ac (patch)
tree6e5d967940412c8451c749c3328dfc8549107fea /pylint.cfg
parentMerge pull request #5597 from matrix-org/erikj/admin_api_cmd (diff)
downloadsynapse-65c5592b8ed11e5ed4c3d6e29aa530d089c463ac.tar.xz
Refactor `get_events_as_list` (#5699)
A couple of changes here:

* get rid of a redundant `allow_rejected` condition - we should already have filtered out any rejected
  events before we get to that point in the code, and the redundancy is confusing. Instead, let's stick in
  an assertion just to make double-sure we aren't leaking rejected events by mistake.

* factor out a `_get_events_from_cache_or_db` method, which is going to be important for a 
  forthcoming fix to redactions.
Diffstat (limited to 'pylint.cfg')
0 files changed, 0 insertions, 0 deletions