chore: remove dead code and unused abstractions (#31437)
This commit is contained in:
parent
f0bc3e4ddf
commit
67f7f286ac
16 changed files with 35 additions and 470 deletions
|
|
@ -18,8 +18,8 @@ func (h *msgHandler) receive(payload string) {
|
|||
h.val.Set(payload)
|
||||
}
|
||||
|
||||
// hasValue returned the received and processed payload as string
|
||||
func (h *msgHandler) hasValue() (string, error) {
|
||||
// value returns the received and processed payload as string
|
||||
func (h *msgHandler) value() (string, error) {
|
||||
payload, err := h.val.GetContext(h.ctx)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
@ -36,12 +36,3 @@ func (h *msgHandler) hasValue() (string, error) {
|
|||
|
||||
return payload, nil
|
||||
}
|
||||
|
||||
func (h *msgHandler) value() (string, error) {
|
||||
v, err := h.hasValue()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return v, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue