Skip to content

Commit b1bfd6e

Browse files
improved readability
Co-authored-by: CyrilFerlicot <cyril@ferlicot.me>
1 parent 812eb2b commit b1bfd6e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/DataFrame/DataFrame.class.st

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,10 +2285,7 @@ DataFrame >> toHtml [
22852285

22862286
dataFrame columnNames withIndexDo: [ :columnName :index |
22872287
| paddedColumnName |
2288-
paddedColumnName := (columnName isString
2289-
ifFalse: [ columnName asString ]
2290-
ifTrue: [ columnName ]) padRightTo:
2291-
(columnWidths at: index).
2288+
paddedColumnName := columnName asString padRightTo: (columnWidths at: index).
22922289
html
22932290
nextPutAll: ' <th>';
22942291
nextPutAll: paddedColumnName;

0 commit comments

Comments
 (0)