Skip to content

Commit

Permalink
remove uneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
captncraig committed Sep 10, 2024
1 parent 319e600 commit 930901c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/component/loki/process/stages/sampling.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ type SamplingConfig struct {
}

func (s *SamplingConfig) SetToDefault() {
if s.DropReason == "" {
s.DropReason = defaultSamplingpReason
}
s.DropReason = defaultSamplingpReason
}

func (s *SamplingConfig) Validate() error {
Expand Down

0 comments on commit 930901c

Please sign in to comment.