Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Sep 11, 2023
1 parent 0dfd941 commit 5b83a18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xray/utils/sarifutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package utils

import (
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 5b83a18

Please sign in to comment.