优化代码

This commit is contained in:
GoEdgeLab
2024-05-08 11:29:37 +08:00
parent 5ab05f4b7a
commit 298881d843

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