HomePhabricator

Simplify function Captcha::loadText for readability

Description

Simplify function Captcha::loadText for readability

  • Move globals definition to the top of the function
  • no else needed, if the if part returns always returns something

I came across this while reading the code in I3a56e4252bbb810c1cf5c632ece9a8edf91c8424

Change-Id: I826a41457667e886b65a07d9d9edc5daec7d1013

Details

Provenance
FlorianAuthored on Jan 21 2017, 8:06 PM
ReedyCommitted on Feb 8 2017, 1:50 AM
Parents
rECOEd14201338ba6: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
I826a41457667e886b65a07d9d9edc5daec7d1013