Fix small lint errors found by gocritic

This commit is contained in:
Deluan
2021-07-15 13:42:54 -04:00
parent 8d56ec898e
commit b0fc684cb6
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func (r mediaFileRepository) FindByPath(path string) (*model.MediaFile, error) {
func cleanPath(path string) string {
path = filepath.Clean(path)
if !strings.HasSuffix(path, string(os.PathSeparator)) {
path = path + string(os.PathSeparator)
path += string(os.PathSeparator)
}
return path
}