Skip to content

Commit

Permalink
Optimization: collect stack trace only when running with the Companio…
Browse files Browse the repository at this point in the history
…n App
  • Loading branch information
MarcinZiabek committed Nov 25, 2024
1 parent 9183ef5 commit 680126f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/QuestPDF/Infrastructure/SourceCodePath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ internal readonly struct SourceCodePath(StackFrame frame)
// TODO: revise for dotnet 9
if (CompanionService.IsDocumentHotReloaded)
return null;


#else

return null;

#endif

var stackTrace = new StackTrace(true);
Expand Down

0 comments on commit 680126f

Please sign in to comment.