Skip to content

Commit a490faa

Browse files
committed
Rewrite with ?: operator.
1 parent 9f463c7 commit a490faa

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Nodes/BaseHexCommentNode.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ protected int AddComment(ViewInfo view, int x, int y, float fvalue, IntPtr ivalu
1919
}
2020
if (view.Settings.ShowCommentInteger)
2121
{
22-
if (ivalue == IntPtr.Zero)
23-
{
24-
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, "(0)");
25-
}
26-
else
27-
{
28-
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, $"({ivalue.ToInt64()}|0x{uvalue.ToUInt64():X})");
29-
}
22+
x = AddText(view, x, y, view.Settings.ValueColor, HotSpot.ReadOnlyId, ivalue == IntPtr.Zero ? "(0)" : $"({ivalue.ToInt64()}|0x{uvalue.ToUInt64():X})");
3023
}
3124

3225
var namedAddress = view.Memory.Process.GetNamedAddress(ivalue);

0 commit comments

Comments
 (0)