Skip to content

Commit 1d1fde9

Browse files
committed
reafctor: rename variables
Signed-off-by: Felix Gateru <[email protected]>
1 parent 85ce57f commit 1d1fde9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/clients/events/consumer/decode.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ func decodeUpdateClientEvent(data map[string]any) (clients.Client, error) {
138138
}
139139

140140
func decodeChangeStatusClientEvent(data map[string]any) (clients.Client, error) {
141-
g, err := ToClientStatus(data)
141+
c, err := ToClientStatus(data)
142142
if err != nil {
143143
return clients.Client{}, errors.Wrap(errDecodeChangeStatusClientEvent, err)
144144
}
145-
return g, nil
145+
return c, nil
146146
}
147147

148148
func ToClientStatus(data map[string]any) (clients.Client, error) {
@@ -181,14 +181,14 @@ func ToClientStatus(data map[string]any) (clients.Client, error) {
181181
}
182182

183183
func decodeRemoveClientEvent(data map[string]any) (clients.Client, error) {
184-
var g clients.Client
184+
var c clients.Client
185185
id, ok := data["id"].(string)
186186
if !ok {
187187
return clients.Client{}, errors.Wrap(errDecodeRemoveClientEvent, errID)
188188
}
189-
g.ID = id
189+
c.ID = id
190190

191-
return g, nil
191+
return c, nil
192192
}
193193

194194
func decodeSetParentGroupEvent(data map[string]any) (clients.Client, error) {

0 commit comments

Comments
 (0)