浏览代码

Optimization: collect stack trace only when running with the Companion App

Marcin Ziąbek 1 年之前
父节点
当前提交
680126f436
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Source/QuestPDF/Infrastructure/SourceCodePath.cs

+ 5 - 1
Source/QuestPDF/Infrastructure/SourceCodePath.cs

@@ -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);