This is an archive of the discontinued Mercurial Phabricator instance.

sshpeer: don't read(0)
ClosedPublic

Authored by indygreg on Mar 3 2018, 9:52 AM.

Details

Summary

read(0) is essentially a no-op. Let's avoid the function call, overhead,
and extra test output by not performing it.

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.Mar 3 2018, 9:52 AM
durin42 accepted this revision.Mar 3 2018, 10:12 AM
This revision is now accepted and ready to land.Mar 3 2018, 10:12 AM
This revision was automatically updated to reflect the committed changes.