Skip to content

Commit 8202052

Browse files
committed
fix: make lint happy
1 parent 7f76024 commit 8202052

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flexmetrics_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ func TestNew(t *testing.T) {
8282

8383
func TestOption_WithServer(t *testing.T) {
8484
myServer := &http.Server{ReadHeaderTimeout: time.Second}
85-
s := New(WithServer(myServer))
86-
if s.server != myServer {
85+
if s := New(WithServer(myServer)); s.server != myServer {
8786
t.Error("WithServer option should set the provided http server")
8887
}
8988
}

0 commit comments

Comments
 (0)