From b42f829606fa9ae972970a91d75d2eaedfecc545 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Thu, 29 Sep 2022 08:24:55 -0700 Subject: [PATCH] Remove unneeded views len check in WithReader --- sdk/metric/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sdk/metric/config.go b/sdk/metric/config.go index a1253334505..5b7537f63ed 100644 --- a/sdk/metric/config.go +++ b/sdk/metric/config.go @@ -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 })