Skip to content

Commit

Permalink
chore: fix staticcheck error (#3933)
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om committed Jun 25, 2023
1 parent 423e104 commit aa08e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions internal/controller/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ import (
intctrlutil "github.com/apecloud/kubeblocks/internal/controllerutil"
)

type componentPathedName struct {
Namespace string `json:"namespace,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Name string `json:"name,omitempty"`
}

const (
VolumeName = "tls"
CAName = "ca.crt"
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/rsm/pod_role_event_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var _ = Describe("pod role label event handler test", func() {
Expect(handler.Handle(cli, reqCtx, nil, event)).Should(Succeed())

By("build an unexpected message")
message = fmt.Sprintf("unexpected message")
message = "unexpected message"
event = builder.NewEventBuilder(namespace, "foo").
SetInvolvedObject(objectRef).
SetMessage(message).
Expand Down Expand Up @@ -141,7 +141,7 @@ var _ = Describe("pod role label event handler test", func() {
Expect(msg.Role).Should(Equal(roleName))

By("build an error formatted message")
message = fmt.Sprintf("Readiness probe failed: error: health rpc failed: rpc error: code = Unknown desc = {\"event\":}")
message = "Readiness probe failed: error: health rpc failed: rpc error: code = Unknown desc = {\"event\":}"
event.Message = message
Expect(parseProbeEventMessage(reqCtx, event)).Should(BeNil())
})
Expand Down

0 comments on commit aa08e76

Please sign in to comment.