Skip to content

Commit f8d6cf7

Browse files
lrafeeinewrelic-python-agent-team
authored andcommitted
[MegaLinter] Apply linters fixes
1 parent 2aafac3 commit f8d6cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newrelic/api/opentelemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def end(self, end_time=None, *args, **kwargs):
254254
# Check to see if New Relic trace ever existed or,
255255
# if it does, that trace has already ended
256256
nr_trace = hasattr(self, "nr_trace", None)
257-
if not nr_trace or nr_trace and getattr(nr_trace, "end_time", None):
257+
if not nr_trace or (nr_trace and getattr(nr_trace, "end_time", None)):
258258
return
259259

260260
# Add attributes as Trace parameters

0 commit comments

Comments
 (0)