Skip to content

Commit

Permalink
Merge branch 'main' into goversion-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielp authored Nov 9, 2023
2 parents 9baab57 + 65b745f commit 41b704b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions receiver/hostmetricsreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,12 @@ func createHostMetricsScraper(ctx context.Context, set receiver.CreateSettings,

type environment interface {
Lookup(k string) (string, bool)
Set(k, v string) error
}

type osEnv struct{}

var _ environment = (*osEnv)(nil)

func (e *osEnv) Set(k, v string) error {
return os.Setenv(k, v)
}

func (e *osEnv) Lookup(k string) (string, bool) {
return os.LookupEnv(k)
}

0 comments on commit 41b704b

Please sign in to comment.