Skip to content

Commit

Permalink
PR FIXUP - Fix appendKV casing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Dec 16, 2024
1 parent a4c808e commit 791bb79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/db/fetcher/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (f *documentFetcher) GetFields() (immutable.Option[EncodedDocument], error)
doc.status = f.status
doc.properties = map[client.FieldDefinition]*encProperty{}

err := f.appendKv(&doc, f.currentKV)
err := f.appendKV(&doc, f.currentKV)
if err != nil {
return immutable.None[EncodedDocument](), err
}

Check warning on line 134 in internal/db/fetcher/document.go

View check run for this annotation

Codecov / codecov/patch

internal/db/fetcher/document.go#L133-L134

Added lines #L133 - L134 were not covered by tests
Expand All @@ -154,7 +154,7 @@ func (f *documentFetcher) GetFields() (immutable.Option[EncodedDocument], error)
break
}

err = f.appendKv(&doc, kv)
err = f.appendKV(&doc, kv)
if err != nil {
return immutable.None[EncodedDocument](), err
}
Expand All @@ -163,7 +163,7 @@ func (f *documentFetcher) GetFields() (immutable.Option[EncodedDocument], error)
return immutable.Some[EncodedDocument](&doc), nil
}

func (f *documentFetcher) appendKv(doc *encodedDocument, kv keyValue) error {
func (f *documentFetcher) appendKV(doc *encodedDocument, kv keyValue) error {
if kv.Key.FieldID == keys.DATASTORE_DOC_VERSION_FIELD_ID {
doc.schemaVersionID = string(kv.Value)
return nil
Expand Down

0 comments on commit 791bb79

Please sign in to comment.