Skip to content

Commit

Permalink
Handle empty Snapshots in TonelWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Oct 17, 2023
1 parent 06d77c2 commit 2145dd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
changes-operations
serialize: aSnapshot into: aFileSystem
(self writerOn: aFileSystem) writeSnapshot: aSnapshot.
| writer |
writer := (self writerOn: aFileSystem).
aSnapshot definitions
ifEmpty: [writer packageDir deleteAll]
ifNotEmpty: [writer writeSnapshot: aSnapshot].
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"encodingName" : "mad 10/16/2023 17:27",
"loadSnapshotFrom:" : "mad 10/16/2023 19:52",
"readerIn:" : "mad 10/16/2023 20:35",
"serialize:into:" : "mad 10/16/2023 17:26",
"serialize:into:" : "mad 10/17/2023 11:50",
"writeTimestamps" : "mad 9/26/2023 15:24",
"writeTimestamps:" : "mad 9/26/2023 15:24",
"writerOn:" : "mad 10/16/2023 17:26" } }

0 comments on commit 2145dd2

Please sign in to comment.