Skip to content

Commit 1cd4ff9

Browse files
committed
PR feedback
1 parent b70b66a commit 1cd4ff9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tracer/src/Datadog.Trace/PDBs/DatadogMetadataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ private int GetLocalVariablesCount(MethodDefinition method)
261261
if (PdbReader != null)
262262
{
263263
var methodDefHandle = GetMethodDefHandle(methodToken);
264-
var methodDef = GetMethodDef(methodDefHandle);
265264
if (methodDefHandle.IsNil)
266265
{
267266
return null;
268267
}
269268

269+
var methodDef = GetMethodDef(methodDefHandle);
270270
MethodDebugInformation methodDebugInformation = PdbReader.GetMethodDebugInformation(methodDefHandle.ToDebugInformationHandle());
271271
if (methodDebugInformation.SequencePointsBlob.IsNil && searchMoveNext)
272272
{

0 commit comments

Comments
 (0)