Skip to content

Commit

Permalink
Delete the commented crdt/primitive panic function
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjae committed Sep 20, 2023
1 parent bb79fcd commit 0e4b28f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/document/crdt/primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ func ValueFromBytes(valueType ValueType, value []byte) (interface{}, error) {
default:
return nil, ErrUnsupportedType
}

// panic("unsupported type")
}

// Primitive represents JSON primitive data type including logical lock.
Expand Down Expand Up @@ -155,8 +153,6 @@ func NewPrimitive(value interface{}, createdAt *time.Ticket) (*Primitive, error)
default:
return nil, ErrUnsupportedType
}

// panic("unsupported type")
}

// Bytes creates an array representing the value.
Expand Down Expand Up @@ -194,8 +190,6 @@ func (p *Primitive) Bytes() ([]byte, error) {
default:
return nil, ErrUnsupportedType
}

// panic("unsupported type")
}

// Marshal returns the JSON encoding of the value.
Expand Down Expand Up @@ -223,7 +217,6 @@ func (p *Primitive) Marshal() string {
default:
return ""
}
// panic("unsupported type")
}

// DeepCopy copies itself deeply.
Expand Down

0 comments on commit 0e4b28f

Please sign in to comment.