             type: 'group-end'
             snapshot: @delegate.serializeSnapshot(entry.snapshot)
           }
-        when Patch
+        else
           {
             type: 'patch'
             content: entry.serialize()
-          }
-        else
-          {
-            type: 'change'
-            content: @delegate.serializeChange(entry)
           }
 
   deserializeStack: (stack) ->

          )
        when 'patch'
          Patch.deserialize(entry.content)
        when 'change'
          @delegate.deserializeChange(entry.content)

Patch = require 'atom-patch'

SerializationVersion = 4

class Checkpoint
  constructor: (@id, @snapshot, @isBoundary) ->
