mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Ran formatter and fixed some lint issues
This commit is contained in:
@@ -5,11 +5,10 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Sometimes the \ isn't recognized as valid on windows
|
||||
// FixWindowsPath replaces \ with / in the given path because sometimes the \ isn't recognized as valid on windows
|
||||
func FixWindowsPath(str string) string {
|
||||
if runtime.GOOS == "windows" {
|
||||
return strings.Replace(str, "\\", "/", -1)
|
||||
} else {
|
||||
return str
|
||||
}
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user