Skip to content

Commit

Permalink
fix: remove unnecessary type conversion
Browse files Browse the repository at this point in the history
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
  • Loading branch information
WashingtonKK committed Mar 22, 2024
1 parent 8330935 commit 6c1d5f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opcua/api/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (lm loggingMiddleware) Browse(ctx context.Context, serverURI, namespace, id
slog.String("server_uri", serverURI),
slog.String("namespace", namespace),
slog.String("identifier", identifier),
slog.String("identifierType", identifierType),
slog.String("identifier_type", identifierType),
}
if err != nil {
args = append(args, slog.Any("error", err))
Expand Down
2 changes: 1 addition & 1 deletion opcua/events/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func decodeCreateChannel(event map[string]interface{}) (createChannelEvent, erro
return createChannelEvent{}, err
}
var metadata map[string]interface{}
if err := json.Unmarshal([]byte(meta), &metadata); err != nil {
if err := json.Unmarshal(meta, &metadata); err != nil {
return createChannelEvent{}, err
}

Expand Down

0 comments on commit 6c1d5f9

Please sign in to comment.