Skip to content

Commit 99f648e

Browse files
committed
Don't show empty attributes.
Summary: Some places we pass in empty strings and get hanging middots. Would prefer not have the middot, and let the developer decide if they should set a 'nothing here' state. Test Plan: Checked Repositories with no lint messages. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5920
1 parent 63c27b3 commit 99f648e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/view/layout/PhabricatorObjectItemView.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ public function getBarColor() {
122122
}
123123

124124
public function addAttribute($attribute) {
125-
$this->attributes[] = $attribute;
125+
if (!empty($attribute)) {
126+
$this->attributes[] = $attribute;
127+
}
126128
return $this;
127129
}
128130

0 commit comments

Comments
 (0)