Fix small lint errors found by gocritic

This commit is contained in:
Deluan 2021-07-15 13:42:54 -04:00
commit b0fc684cb6
7 changed files with 8 additions and 8 deletions

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
}