From f37e428318462269d13c46a8a3e23b24e44b09e3 Mon Sep 17 00:00:00 2001 From: Esdras Beleza de Noronha Date: Sun, 8 Mar 2020 23:14:32 +0000 Subject: [PATCH] Use comma ok idiom --- suite/suite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/suite.go b/suite/suite.go index e4d2009..87fbe79 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -90,7 +90,7 @@ func Run(t *testing.T, suite TestingSuite) { var stats *SuiteInformation - if _, measureStats := suite.(WithStats); measureStats { + if _, ok := suite.(WithStats); ok { stats = newSuiteInformation() }