Skip to content

Commit

Permalink
Remove duplicate code, same check exists in getLibraryInfo (#2247)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Dec 7, 2020
1 parent 5cae69d commit 65588cc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions translator/internaldata/resource_to_oc.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ func internalResourceToOC(resource pdata.Resource) (*occommon.Node, *ocresource.
}
getProcessIdentifier(ocNode).Pid = uint32(pid)
case conventions.AttributeTelemetrySDKVersion:
if ocNode.LibraryInfo == nil {
ocNode.LibraryInfo = &occommon.LibraryInfo{}
}
getLibraryInfo(ocNode).CoreLibraryVersion = val
case conventions.OCAttributeExporterVersion:
getLibraryInfo(ocNode).ExporterVersion = val
Expand Down

0 comments on commit 65588cc

Please sign in to comment.