Skip to content

Commit

Permalink
Remove unneeded views len check in WithReader
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 29, 2022
1 parent b8a3658 commit b42f829
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sdk/metric/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ func WithReader(r Reader, views ...view.View) Option {
if cfg.readers == nil {
cfg.readers = make(map[Reader][]view.View)
}
if len(views) == 0 {
views = []view.View{{}}
}

cfg.readers[r] = views
return cfg
})
Expand Down

0 comments on commit b42f829

Please sign in to comment.