Skip to content

Commit

Permalink
Исправляет ошибку тестов
Browse files Browse the repository at this point in the history
  • Loading branch information
inyutin-maxim committed Nov 19, 2024
1 parent 3af208a commit 5101f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VkNet/Utils/VkErrorFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static VkApiMethodInvokeException Create(VkError error)
return exception ?? new VkApiMethodInvokeException(error);
}

private static Func<ConstructorInfo, bool> Predicate() => x => Array.Exists(x.GetParameters(), p => p.ParameterType == typeof(VkError));
private static Predicate<ConstructorInfo> Predicate() => x => Array.Exists(x.GetParameters(), p => p.ParameterType == typeof(VkError));

private static bool HasErrorCode(MemberInfo x, int errorCode) =>
((VkErrorAttribute) Attribute.GetCustomAttribute(x, typeof(VkErrorAttribute))).ErrorCode == errorCode;
Expand Down

0 comments on commit 5101f47

Please sign in to comment.