From 046f2e2514b7cba091e31384eac24b5579e1fbad Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 14 Sep 2022 21:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/actions.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/route/actions.go b/route/actions.go index fec2d8d..8dc87ef 100644 --- a/route/actions.go +++ b/route/actions.go @@ -71,10 +71,6 @@ func recentPosts() (r []models.WpPosts, err error) { r, err = models.Find[models.WpPosts](models.SqlBuilder{{ "post_type", "post", }, {"post_status", "publish"}}, "ID,post_title", "", models.SqlBuilder{{"post_date", "desc"}}, nil, 5) - if err != nil { - return - } - return }