From f64b808aed495dc71bf72a96fa139e848dd2e2fb Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 17 Aug 2021 17:14:27 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Editor/Weaver/TypeReferenceComparer.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/TypeReferenceComparer.cs b/Assets/Mirror/Editor/Weaver/TypeReferenceComparer.cs index 6bfd9c758..e3c31d555 100644 --- a/Assets/Mirror/Editor/Weaver/TypeReferenceComparer.cs +++ b/Assets/Mirror/Editor/Weaver/TypeReferenceComparer.cs @@ -6,14 +6,10 @@ namespace Mirror.Weaver // Compares TypeReference using FullName public class TypeReferenceComparer : IEqualityComparer { - public bool Equals(TypeReference x, TypeReference y) - { - return x.FullName == y.FullName; - } + public bool Equals(TypeReference x, TypeReference y) => + x.FullName == y.FullName; - public int GetHashCode(TypeReference obj) - { - return obj.FullName.GetHashCode(); - } + public int GetHashCode(TypeReference obj) => + obj.FullName.GetHashCode(); } }