Remove unnecessary Syntax

This commit is contained in:
vis2k 2019-01-01 18:24:26 +01:00
parent f8ff8969f5
commit 32dcaf14e3

View File

@ -1492,14 +1492,14 @@ public static bool IsValidTypeToGenerate(TypeDefinition variable)
// a valid type is a simple class or struct. so we generate only code for types we dont know, and if they are not inside
// this assembly it must mean that we are trying to serialize a variable outside our scope. and this will fail.
string assembly = Weaver.scriptDef.MainModule.Name;
string assembly = scriptDef.MainModule.Name;
if (variable.Module.Name != assembly)
{
Log.Error("parameter [" + variable.Name +
"] is of the type [" +
variable.FullName +
"] is not a valid type, please make sure to use a valid type.");
Weaver.fail = true;
fail = true;
return false;
}
return true;