Skip to content

Commit 596f4d9

Browse files
committed
chore: enable nullable for SymbolResolver.cs
1 parent d04c052 commit 596f4d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BenchmarkDotNet/Disassemblers/Exporters/SymbolResolver.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using Iced.Intel;
22
using System.Collections.Generic;
33

4+
#nullable enable
5+
46
namespace BenchmarkDotNet.Disassemblers.Exporters
57
{
68
internal sealed class SymbolResolver : ISymbolResolver
@@ -11,7 +13,7 @@ internal sealed class SymbolResolver : ISymbolResolver
1113

1214
public bool TryGetSymbol(in Instruction instruction, int operand, int instructionOperand, ulong address, int addressSize, out SymbolResult symbol)
1315
{
14-
if (_mappings.TryGetValue(address, out string text))
16+
if (_mappings.TryGetValue(address, out var text))
1517
{
1618
symbol = new SymbolResult(address, text);
1719
return true;

0 commit comments

Comments
 (0)