aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Common/CommonExtensions.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-08-04 09:14:45 -0500
committerJP Dillingham <jp@dillingham.me>2025-08-04 09:14:45 -0500
commitfbe80076abde85ae6465861f2ad9662682f5378c (patch)
treed4bbdbd046756b47f6d4064f57d8d9470fa1e575 /src/slskd/Common/CommonExtensions.cs
parentbdd085700fa57cf8db0230139c8c639bf70d5ab9 (diff)
downloadslskd-fbe80076abde85ae6465861f2ad9662682f5378c.tar.gz
check for enums when diffing objects
Diffstat (limited to 'src/slskd/Common/CommonExtensions.cs')
-rw-r--r--src/slskd/Common/CommonExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs
index 44e3c034..ec76b745 100644
--- a/src/slskd/Common/CommonExtensions.cs
+++ b/src/slskd/Common/CommonExtensions.cs
@@ -116,7 +116,7 @@ namespace slskd
differences.Add((prop, fqn, leftVal, rightVal));
}
}
- else if (propType.IsPrimitive || Nullable.GetUnderlyingType(propType) != null || new[] { typeof(string), typeof(decimal) }.Contains(propType))
+ else if (propType.IsPrimitive || propType.IsEnum || Nullable.GetUnderlyingType(propType) != null || new[] { typeof(string), typeof(decimal) }.Contains(propType))
{
if (!Equals(leftVal, rightVal))
{