fix comment typo
This commit is contained in:
parent
96577606c3
commit
d97e3caf4f
|
@ -24,7 +24,7 @@ func (w *Writer) NewBatch() store.KVBatch {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error) {
|
func (w *Writer) NewBatchEx(options store.KVBatchOptions) ([]byte, store.KVBatch, error) {
|
||||||
buf, b, err := w.o.NewBatchEx(options)
|
buf, b, err := w.o.NewBatchEx(options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -363,7 +363,7 @@ func (im *IndexMapping) UnmarshalJSON(data []byte) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (im *IndexMapping) determineType(data interface{}) string {
|
func (im *IndexMapping) determineType(data interface{}) string {
|
||||||
// first see if the object implements Identifier
|
// first see if the object implements Classifier
|
||||||
classifier, ok := data.(Classifier)
|
classifier, ok := data.(Classifier)
|
||||||
if ok {
|
if ok {
|
||||||
return classifier.Type()
|
return classifier.Type()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user