Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add early returns to _check_for_soft_fail #7769

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 1, 2020

my editor was complaining about unset variables, so let's add some early
returns to fix that and reduce indentation/cognitive load.

my editor was complaining about unset variables, so let's add some early
returns to fix that and reduce indentation/cognitive load.
@richvdh richvdh requested a review from a team July 1, 2020 13:27
Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Note that the non-whitespace diff is much more readable.

@richvdh richvdh merged commit e866512 into develop Jul 1, 2020
@richvdh richvdh deleted the rav/soft_fail_early_return branch July 1, 2020 15:41
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '5cdca53aa':
  Merge different Resource implementation classes (#7732)
  Fix inconsistent handling of upper and lower cases of email addresses. (#7021)
  Allow YAML config file to contain None (#7779)
  Fix a typo.
  Move 1.15.2 after 1.16.0rc2.
  1.16.0rc2
  Remove an extraneous space.
  Add links to the fixes.
  Fix tense in the release notes.
  Hack to add push priority to push notifications (#7765)
  Add early returns to `_check_for_soft_fail` (#7769)
  Use symbolic names for replication stream names (#7768)
  Type checking for `FederationHandler` (#7770)
  Fix new metric where we used ms instead of seconds (#7771)
  Fix incorrect error message when database CTYPE was set incorrectly. (#7760)
  Pin link in CHANGES.md
  Fixes to CHANGES.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants