优化代码

This commit is contained in:
刘祥超
2024-05-08 11:29:37 +08:00
parent 457dacf9e0
commit 71864f8785

View File

@@ -165,9 +165,6 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string
Count: 256,
Unit: shared.SizeCapacityUnitMB,
}
if err != nil {
return 0, err
}
maxSizeJSON, err := maxSize.AsJSON()
if err != nil {
return 0, err