Skip to content

Commit

Permalink
logical or to conditional logical or
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Oct 12, 2023
1 parent 8919fa3 commit ca96f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kalk.Core/KalkEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public override string ObjectToString(object value, bool nested = false)
return _miscModule.DateObject.ToString((DateTime)value, _miscModule.DateObject.Format, CurrentCulture);
}

if (CurrentDisplay != KalkDisplayMode.Raw && (value is int | value is uint || value is ulong || value is long || value is BigInteger || value is short || value is ushort))
if (CurrentDisplay != KalkDisplayMode.Raw && (value is int || value is uint || value is ulong || value is long || value is BigInteger || value is short || value is ushort))
{
return ((IFormattable)value).ToString("N", _integersCultureInfoWithUnderscore);
}
Expand Down

0 comments on commit ca96f29

Please sign in to comment.