Skip to content

Commit

Permalink
Merge pull request #49 from seandenigris/doc_method-comment
Browse files Browse the repository at this point in the history
[Doc]: Method Comment
  • Loading branch information
seandenigris authored Jun 19, 2024
2 parents fc55c0c + 974a6a7 commit 80e800b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repository/Neo-CSV-Magritte/MACSVWriter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ MACSVWriter >> writeToStream: aStream [
ifTrue: [
| aValue |
aValue := field read: anObject.

"`#read: returns either a non-nil value or #undefinedValue, so the following test is sufficient e.g. not checking for nil"
aValue = field undefinedValue ifTrue: [
aValue := field default ].

converter cull: aValue cull: anObject ]
ifFalse: [ nil ] ].
self writer addField: wrappedConverter ].
Expand Down

0 comments on commit 80e800b

Please sign in to comment.