From 08cc00f9d5247386bced4b885e65030c23919b1e Mon Sep 17 00:00:00 2001 From: Rui Azevedo Date: Tue, 18 Jun 2024 15:31:12 +0100 Subject: [PATCH] Remove spurious error check Part of #201 --- model/llm/llm.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/model/llm/llm.go b/model/llm/llm.go index c69a412b..92e4e3e0 100644 --- a/model/llm/llm.go +++ b/model/llm/llm.go @@ -206,10 +206,6 @@ func (m *Model) generateTestsForFile(ctx task.Context) (assessment metrics.Asses assessment[metrics.AssessmentKeyResponseCharacterCount] = uint64(len(response)) assessment[metrics.AssessmentKeyGenerateTestsForFileCharacterCount] = uint64(len(testContent)) - if err != nil { - return nil, pkgerrors.WithStack(err) - } - testFilePath := ctx.Language.TestFilePath(ctx.RepositoryPath, ctx.FilePath) if err := os.MkdirAll(filepath.Join(ctx.RepositoryPath, filepath.Dir(testFilePath)), 0755); err != nil { return nil, pkgerrors.WithStack(err)