Skip to content

Commit

Permalink
feat: update additional 2 interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasoskorep committed Nov 8, 2023
1 parent 63b50d3 commit 7a8a921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/stanza/entry/body_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (f BodyField) String() string {
// Get will retrieve a value from an entry's body using the field.
// It will return the value and whether the field existed.
func (f BodyField) Get(entry *Entry) (any, bool) {
var currentValue any = entry.Body
var currentValue = entry.Body

for _, key := range f.Keys {
currentMap, ok := currentValue.(map[string]any)
Expand Down
3 changes: 1 addition & 2 deletions receiver/gitproviderreceiver/internal/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ type ScraperFactory interface {
CreateMetricsScraper(ctx context.Context, params receiver.CreateSettings, cfg Config) (scraperhelper.Scraper, error)
}

type Config interface {
}
type Config any

type ScraperConfig struct {
}

0 comments on commit 7a8a921

Please sign in to comment.