From e216a23ac1fdb0cb2297fc1bfb8e88abb0da9a90 Mon Sep 17 00:00:00 2001 From: d4x1 <1507509064@qq.com> Date: Wed, 18 Dec 2024 14:48:05 +0800 Subject: [PATCH] fix(zentao): fix lint errors --- backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go b/backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go index 6c757ba9fd2..df8bda33274 100644 --- a/backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go +++ b/backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go @@ -40,7 +40,7 @@ type DsRemoteApiProxyHelper[C plugin.ToolLayerApiConnection] struct { // NewDsRemoteApiProxyHelper creates a new DsRemoteApiProxyHelper func NewDsRemoteApiProxyHelper[ - C plugin.ToolLayerApiConnection, +C plugin.ToolLayerApiConnection, ]( modelApiHelper *ModelApiHelper[C], ) *DsRemoteApiProxyHelper[C] { @@ -67,7 +67,7 @@ func (rap *DsRemoteApiProxyHelper[C]) prepare(input *plugin.ApiResourceInput) (* func (rap *DsRemoteApiProxyHelper[C]) getApiClient(connection *C) (*ApiClient, errors.Error) { c := interface{}(connection) key := "" - var cacheable bool = false + cacheable := true if unCacheableConnection, ok := c.(plugin.UnCacheableConnection); ok { cacheable = !unCacheableConnection.UncCacheable() }