From 5e084d742a70637e9f8ba1204621921f600aa15e Mon Sep 17 00:00:00 2001 From: voxfeng Date: Thu, 10 Mar 2022 10:59:21 +0800 Subject: [PATCH] remove unnecessary type convert --- gotests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotests.go b/gotests.go index 7cff8a0..36f7a83 100644 --- a/gotests.go +++ b/gotests.go @@ -110,7 +110,7 @@ func generateTest(src models.Path, files []models.Path, opt *Options) (*Generate } h := sr.Header h.Code = nil // Code is only needed from parsed test files. - testPath := models.Path(src).TestPath() + testPath := src.TestPath() h, tf, err := parseTestFile(p, testPath, h) if err != nil { return nil, err