Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ public static bool Compare(object? leftOperand, ComparisonConditionType operator
{
if (leftOperand is not null && rightOperand is not null)
{
var rightOperandString = rightOperand.ToString();
var leftOperandType = leftOperand.GetType();
if (rightOperandString is not null)
if (rightOperand is string rightOperandString)
{
var leftOperandType = leftOperand.GetType();
var convertedRightOperand = TypeConverterHelper.Convert(rightOperandString, leftOperandType);
if (convertedRightOperand is not null)
{
Expand Down
Loading