修改 Trim 为 TrimRight
This commit is contained in:
parent
c3c19cd754
commit
3a485f6bf7
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ func GenericAfterUpload(ctx context.Context, fs *FileSystem) error {
|
|||
fs.recycleLock.Lock()
|
||||
go func() {
|
||||
defer fs.recycleLock.Unlock()
|
||||
file.Name = strings.Trim(file.Name, ".tacitpart")
|
||||
file.Name = strings.TrimRight(file.Name, ".tacitpart")
|
||||
fs.GenerateThumbnail(ctx, file)
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue