From 451781bb79005e09e75b8c66e56b007dd7654d96 Mon Sep 17 00:00:00 2001 From: Pehesi97 Date: Fri, 8 Sep 2023 16:07:21 -0300 Subject: [PATCH] chore: removing go code --- src/services/project/project_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/services/project/project_test.go b/src/services/project/project_test.go index 74e6a55..5e7af51 100644 --- a/src/services/project/project_test.go +++ b/src/services/project/project_test.go @@ -24,13 +24,7 @@ func TestDetectType(t *testing.T) { test_proj_type := Project{Name: string(project_type), Directory: path.Join(root, props["directory"])} - var proj_type ProjectType - var err error - if test_proj_type.Language == "auto" { - proj_type, err = test_proj_type.detectType() - } else { - proj_type, err = test_proj_type.matchType() - } + proj_type, err := test_proj_type.detectType() // if we cannot autodetect a project we will return an error if project_type == "invalid" && err != nil {