mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-22 03:38:42 +02:00
d4557c3dfa
- Simplify conditionals. - Remove unnecessary nil check. Go type assertions return a bool value indicating whether the assertion succeeded. When the assertion is performed on a nil value, the bool becomes false without a panic, therefore the nil check is unnecessary.