Skip to content

Commit 40b7bbe

Browse files
committed
chore: fix linting issues after golangci-lint update
- Add gocognit to nolint directive for complex connector state function - Remove unused errors import from schema service
1 parent 87200bd commit 40b7bbe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

backend/pkg/connect/get_connectors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ type holisticConnectorState struct {
414414
Errors []ClusterConnectorInfoError
415415
}
416416

417-
//nolint:cyclop // lots of inspection of state and tasks to determine status and errors
417+
//nolint:cyclop,gocognit // lots of inspection of state and tasks to determine status and errors
418418
func getHolisticStateFromConnector(status con.ConnectorStateInfo, aggregatedTasksStatus aggregatedConnectorTasksStatus) holisticConnectorState {
419419
// LOGIC:
420420
// HEALTHY: Connector is in running state, > 0 tasks, all of them in running state.

backend/pkg/schema/service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package schema
1111

1212
import (
1313
"context"
14-
"errors"
1514
"fmt"
1615
"maps"
1716
"strconv"

0 commit comments

Comments
 (0)