From 771f1fea13a6b59b7dfa064c83bd58c0f18b0f23 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Sun, 23 Aug 2020 19:30:20 +0100 Subject: [PATCH] fixing typo (#2192) variable should start with lower case --- Assets/Mirror/Editor/Weaver/Writers.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Writers.cs b/Assets/Mirror/Editor/Weaver/Writers.cs index 9eb90fc3f..5b21d2f5f 100644 --- a/Assets/Mirror/Editor/Weaver/Writers.cs +++ b/Assets/Mirror/Editor/Weaver/Writers.cs @@ -83,13 +83,13 @@ static MethodDefinition GenerateWriter(TypeReference variableReference, int recu // check for invalid types - TypeDefinition VariableDefinition = variableReference.Resolve(); - if (VariableDefinition == null) + TypeDefinition variableDefinition = variableReference.Resolve(); + if (variableDefinition == null) { Weaver.Error($"{variableReference.Name} is not a supported type. Use a supported type or provide a custom writer", variableReference); return null; } - if (VariableDefinition.IsDerivedFrom(WeaverTypes.ComponentType)) + if (variableDefinition.IsDerivedFrom(WeaverTypes.ComponentType)) { Weaver.Error($"Cannot generate writer for component type {variableReference.Name}. Use a supported type or provide a custom writer", variableReference); return null; @@ -104,12 +104,12 @@ static MethodDefinition GenerateWriter(TypeReference variableReference, int recu Weaver.Error($"Cannot generate writer for {variableReference.Name}. Use a supported type or provide a custom writer", variableReference); return null; } - if (VariableDefinition.HasGenericParameters) + if (variableDefinition.HasGenericParameters) { Weaver.Error($"Cannot generate writer for generic type {variableReference.Name}. Use a supported type or provide a custom writer", variableReference); return null; } - if (VariableDefinition.IsInterface) + if (variableDefinition.IsInterface) { Weaver.Error($"Cannot generate writer for interface {variableReference.Name}. Use a supported type or provide a custom writer", variableReference); return null;