Skip to content

Commit db78710

Browse files
author
彭伟
committed
Remove unnecessary parameter
1 parent a97ab38 commit db78710

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Sentry/Extensibility/SentryStackTraceFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public SentryStackTrace Create(Exception exception = null)
2626

2727
_options.DiagnosticLogger?.LogDebug("Creating SentryStackTrace. isCurrentStackTrace: {0}.", isCurrentStackTrace);
2828

29-
return Create(CreateStackTrace(exception, isCurrentStackTrace), isCurrentStackTrace);
29+
return Create(CreateStackTrace(exception), isCurrentStackTrace);
3030
}
3131

32-
protected virtual StackTrace CreateStackTrace(Exception exception, bool isCurrentStackTrace) =>
33-
isCurrentStackTrace ? new StackTrace(true) : new StackTrace(exception, true);
32+
protected virtual StackTrace CreateStackTrace(Exception exception) =>
33+
exception == null ? new StackTrace(true) : new StackTrace(exception, true);
3434

3535
internal SentryStackTrace Create(StackTrace stackTrace, bool isCurrentStackTrace)
3636
{

0 commit comments

Comments
 (0)