Test: filesystem/local & filesystem/validator

This commit is contained in:
HFO4
2019-11-17 14:33:00 +08:00
parent 99e7eecab7
commit 3741da692b
5 changed files with 173 additions and 3 deletions

View File

@@ -27,7 +27,6 @@ func (fs *FileSystem) ValidateExtension(ctx context.Context, fileName string) bo
}
ext := filepath.Ext(fileName)
// 无扩展名时
if len(ext) == 0 {
return false