Skip to content

Commit 3658cce

Browse files
committed
lint: missing func comment
1 parent b81754a commit 3658cce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fileutils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func TempFileName(dir, pattern string) (string, error) {
155155
var reInvalidPathChars = regexp.MustCompile(`[<>:"|?*]+`) // invalid path characters
156156
const maxPathLength = 1024 // maximum length for path
157157

158+
// SanitizePath returns a sanitized version of the given path.
158159
func SanitizePath(s string) string {
159160
s = strings.TrimSpace(s)
160161
s = reInvalidPathChars.ReplaceAllString(filepath.Clean(s), "_")

0 commit comments

Comments
 (0)