Skip to content

Commit

Permalink
Apply lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed Apr 1, 2024
1 parent 497e0ff commit c519367
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions wawa.IO/Source/Internals/TypePairEqualityComparer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MPL-2.0
namespace Wawa.IO.Internals;

/// <summary>Provides an <see cref="IEqualityComparer{T}"/> for <see cref="KeyValuePair{T, Type}"/>.</summary>
Expand All @@ -7,7 +8,9 @@ sealed class TypePairEqualityComparer<T> : IEqualityComparer<KeyValuePair<T, Typ
TypePairEqualityComparer() { }

/// <summary>Gets the singleton instance.</summary>
internal static IEqualityComparer<KeyValuePair<T, Type>> Instance { get; } = new TypePairEqualityComparer<T>();
[NotNull]
internal static IEqualityComparer<KeyValuePair<T, Type>> Instance { [Pure] get; } =
new TypePairEqualityComparer<T>();

/// <inheritdoc />
[Pure]
Expand All @@ -18,4 +21,4 @@ bool IEqualityComparer<KeyValuePair<T, Type>>.Equals(KeyValuePair<T, Type> x, Ke
[Pure]
int IEqualityComparer<KeyValuePair<T, Type>>.GetHashCode(KeyValuePair<T, Type> obj) =>
unchecked(EqualityComparer<T>.Default.GetHashCode(obj.Key) * 397 ^ obj.Value.GetHashCode());
}
}
2 changes: 2 additions & 0 deletions wawa.Modules/Source/Sounds/SoundCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public static Maybe<KMAudioRef> Play(
? audio.HandlePlaySoundAtTransformWithRef?.Invoke(that.Modded.Value, transform, isLooping)
: audio.HandlePlayGameSoundAtTransformWithRef?.Invoke(that.Vanilla.Unwrap(), transform);
}
#pragma warning disable S1696
catch (NullReferenceException)
#pragma warning restore S1696
{
return null;
}
Expand Down
1 change: 0 additions & 1 deletion wawa.Recall/Source/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
extern alias core;
extern alias unity;
global using static Wawa.Recall.Internals.Globals;
global using Color = unity::UnityEngine.Color;
global using CoreBehaviour = core::UnityEngine.MonoBehaviour;
global using MonoBehaviour = unity::UnityEngine.MonoBehaviour;

0 comments on commit c519367

Please sign in to comment.