Skip to content

Commit

Permalink
fix(zentao): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Dec 18, 2024
1 parent 80a83ec commit ac5a611
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/helpers/pluginhelper/api/ds_remote_api_proxy_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ type DsRemoteApiProxyHelper[C plugin.ToolLayerApiConnection] struct {
}

// NewDsRemoteApiProxyHelper creates a new DsRemoteApiProxyHelper
func NewDsRemoteApiProxyHelper[
C plugin.ToolLayerApiConnection,
](
modelApiHelper *ModelApiHelper[C],
) *DsRemoteApiProxyHelper[C] {
func NewDsRemoteApiProxyHelper[C plugin.ToolLayerApiConnection](modelApiHelper *ModelApiHelper[C]) *DsRemoteApiProxyHelper[C] {
return &DsRemoteApiProxyHelper[C]{
ModelApiHelper: modelApiHelper,
logger: modelApiHelper.basicRes.GetLogger().Nested("remote_api_helper"),
Expand All @@ -67,7 +63,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
var cacheable = false
if unCacheableConnection, ok := c.(plugin.UnCacheableConnection); ok {
cacheable = !unCacheableConnection.UncCacheable()
}
Expand Down

0 comments on commit ac5a611

Please sign in to comment.