Page MenuHomePhabricator

Don't show a blank line if there is no user data
ClosedPublic

Authored by alexmv on Sep 20 2017, 9:35 PM.
Tags
None
Referenced Files
F14801064: D18632.id.diff
Sat, Jan 25, 9:09 AM
F14800748: D18632.id44735.diff
Sat, Jan 25, 8:41 AM
Unknown Object (File)
Fri, Jan 24, 5:52 PM
Unknown Object (File)
Tue, Jan 21, 10:37 AM
Unknown Object (File)
Fri, Jan 17, 2:14 AM
Unknown Object (File)
Fri, Jan 10, 9:18 AM
Unknown Object (File)
Sat, Jan 4, 8:45 PM
Unknown Object (File)
Fri, Jan 3, 3:37 AM
Subscribers

Details

Summary

SKIP lines, for instance, often have no UserData; there is no
reason to display a content-less blank line.

Test Plan

arc unit

Diff Detail

Repository
rARC Arcanist
Branch
blank-line (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18513
Build 24934: Run Core Tests
Build 24933: arc lint + arc unit

Event Timeline

Prefer a strlen() test over a plain test, so values like "0", "0.0", etc., are printed faithfully.

This revision now requires changes to proceed.Sep 20 2017, 9:43 PM

Swap to a strlen, instead of using truthiness

This revision is now accepted and ready to land.Sep 21 2017, 12:44 AM
This revision was automatically updated to reflect the committed changes.