Formatting Part deux

This commit is contained in:
sirhamsteralot
2019-12-26 14:45:12 +01:00
parent 92ae252210
commit 2395c33995

View File

@@ -381,7 +381,8 @@ namespace Torch.Managers.PatchManager
break; break;
} }
ParameterInfo declParam = _method.GetParameters().FirstOrDefault(x => x.Name == param.Name); ParameterInfo declParam = _method.GetParameters().FirstOrDefault(x => x.Name == param.Name);
if (declParam == null) if (declParam == null)
throw new Exception($"Parameter name {param.Name} not found"); throw new Exception($"Parameter name {param.Name} not found");
int paramIdx = (_method.IsStatic ? 0 : 1) + declParam.Position; int paramIdx = (_method.IsStatic ? 0 : 1) + declParam.Position;