From 298881d843bc4838e71064d72bb82586c44ea8d2 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 8 May 2024 11:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_cache_policy_dao.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/db/models/http_cache_policy_dao.go b/internal/db/models/http_cache_policy_dao.go index 4b08c41e..6ffaacd2 100644 --- a/internal/db/models/http_cache_policy_dao.go +++ b/internal/db/models/http_cache_policy_dao.go @@ -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