Skip to content

Commit 023a2a6

Browse files
authored
Merge pull request #269 from tomooda/master
simplify numberOfColumns and numberOfRows
2 parents 376dc79 + 9f5628a commit 023a2a6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/DataFrame/DataFrameInternal.class.st

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,13 @@ DataFrameInternal >> initialize: aPoint [
251251
{ #category : #accessing }
252252
DataFrameInternal >> numberOfColumns [
253253

254-
contents numberOfColumns ifNil: [ ^ 0 ].
255-
256-
^ contents numberOfColumns
254+
^ contents numberOfColumns ifNil: [ 0 ]
257255
]
258256

259257
{ #category : #accessing }
260258
DataFrameInternal >> numberOfRows [
261259

262-
contents numberOfRows ifNil: [ ^ 0 ].
263-
264-
^ contents numberOfRows
260+
^ contents numberOfRows ifNil: [ 0 ]
265261
]
266262

267263
{ #category : #printing }

0 commit comments

Comments
 (0)