Skip to content

Commit

Permalink
nyum
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 22, 2023
1 parent 35b9e09 commit 2aa0429
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 8 additions & 0 deletions DisCatSharp.Attributes/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.

using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage("Style", "IDE0290:Use primary constructor", Justification = "<Pending>", Scope = "member", Target = "~M:DisCatSharp.Attributes.FeatureDescriptionAttribute.#ctor(System.String)")]
6 changes: 1 addition & 5 deletions DisCatSharp/Entities/User/DiscordUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,7 @@ public override string ToString()
var o1 = e1 as object;
var o2 = e2 as object;

return o1 is null && o2 is null
? true
: o1 is null || o2 is null
? false
: e1.Id == e2.Id;
return (o1 is null && o2 is null) || (o1 is not null && o2 is not null && e1.Id == e2.Id);
}

/// <summary>
Expand Down

0 comments on commit 2aa0429

Please sign in to comment.