We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9bcac commit 78db66dCopy full SHA for 78db66d
jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/VcrSelfie.kt
@@ -65,6 +65,8 @@ internal constructor(
65
init {
66
val canWrite = Selfie.system.mode.canWrite(isTodo = false, call, Selfie.system)
67
if (canWrite) {
68
+ state = State.Write()
69
+ } else {
70
val snapshot =
71
disk.readDisk(sub, call)
72
?: throw Selfie.system.fs.assertFailed(Selfie.system.mode.msgVcrSnapshotNotFound())
@@ -81,8 +83,6 @@ internal constructor(
81
83
frames.add(keyAfterNum to value)
82
84
}
85
state = State.Read(frames)
- } else {
- state = State.Write()
86
87
88
override fun close() {
0 commit comments