Fix items found in PVS-Studio analysis

This commit is contained in:
Sebastiaan Janssen
2022-02-11 09:44:48 +01:00
committed by Nathan Woulfe
parent d1f1817744
commit 7f9b143e1a
8 changed files with 17 additions and 47 deletions

View File

@@ -626,7 +626,6 @@ namespace Umbraco.Extensions
if (type == typeof(sbyte)) return XmlConvert.ToString((sbyte)value);
if (type == typeof(short)) return XmlConvert.ToString((short)value);
if (type == typeof(TimeSpan)) return XmlConvert.ToString((TimeSpan)value);
if (type == typeof(bool)) return XmlConvert.ToString((bool)value);
if (type == typeof(uint)) return XmlConvert.ToString((uint)value);
if (type == typeof(ulong)) return XmlConvert.ToString((ulong)value);
if (type == typeof(ushort)) return XmlConvert.ToString((ushort)value);