From 5b83a180d95e6e88878ba7321265cf8d35ab6ff7 Mon Sep 17 00:00:00 2001 From: attiasas Date: Mon, 11 Sep 2023 20:42:40 +0300 Subject: [PATCH] format --- xray/utils/sarifutils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xray/utils/sarifutils.go b/xray/utils/sarifutils.go index a2ed33ea5..55499d520 100644 --- a/xray/utils/sarifutils.go +++ b/xray/utils/sarifutils.go @@ -2,7 +2,6 @@ package utils import ( "fmt" - "os" "path/filepath" "strconv" "strings" @@ -349,7 +348,7 @@ func ExtractRelativePath(resultPath string, projectRoot string) string { resultPath = strings.TrimPrefix(resultPath, "file:///private/") resultPath = strings.TrimPrefix(resultPath, "file://") - // Get relative path + // Get relative path relativePath, _ := filepath.Rel(projectRoot, resultPath) return relativePath }