Skip to content

Commit

Permalink
Update utils/utils.go
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Sharma <[email protected]>
Signed-off-by: Mohit Pal Singh <[email protected]>
  • Loading branch information
mohitpalsingh and shubham1172 authored Jun 23, 2023
1 parent f506e96 commit d58b9e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,5 @@ func FindFileInDir(dirPath, fileName string) (string, error) {

// SanitizeDir corrects any syntactical errors in the passed directory.
func SanitizeDir(destDir string) string {
correctedDestDir := destDir
correctedDestDir = strings.ReplaceAll(correctedDestDir, "'", "''")
return correctedDestDir
return strings.ReplaceAll(destDir, "'", "''")
}

0 comments on commit d58b9e5

Please sign in to comment.