This is an archive of the discontinued Mercurial Phabricator instance.

httppeer: change logic around argument handling
ClosedPublic

Authored by indygreg on Feb 12 2018, 10:48 PM.

Details

Summary

The code to process arguments only makes sense if there are
arguments. So change an "else" to "elif args", remove an
"if" that isn't necessary, and add some docs for good measure.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Feb 12 2018, 10:48 PM
lothiraldan accepted this revision.Feb 13 2018, 3:56 AM
This revision was automatically updated to reflect the committed changes.