Skip to content

Commit

Permalink
Fix example panic when key is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Dec 28, 2024
1 parent 1a78acf commit 11aa88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/1.6/cp/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (handler *ChargePointHandler) OnGetConfiguration(request *core.GetConfigura
for _, key := range request.Key {
configKey, ok := handler.configuration[key]
if !ok {
unknownKeys = append(unknownKeys, *configKey.Value)
unknownKeys = append(unknownKeys, configKey.Key)
} else {
resultKeys = append(resultKeys, configKey)
}
Expand Down

0 comments on commit 11aa88e

Please sign in to comment.