Skip to content

Commit 3616e38

Browse files
improved readability
Co-authored-by: CyrilFerlicot <cyril@ferlicot.me>
1 parent fa2fbdc commit 3616e38

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
@@ -2454,10 +2454,7 @@ DataFrame >> toString [
24542454

24552455
dataFrame columnNames withIndexDo: [ :columnName :index |
24562456
| paddedColumnName |
2457-
paddedColumnName := (columnName isString
2458-
ifFalse: [ columnName asString ]
2459-
ifTrue: [ columnName ]) padRightTo:
2460-
(columnWidths at: index).
2457+
paddedColumnName := columnName asString padRightTo: (columnWidths at: index).
24612458
stringTable nextPutAll: paddedColumnName , ' ' ].
24622459
stringTable cr.
24632460

0 commit comments

Comments
 (0)