From e1bbb92b7e7b2e032271dc27d9cabc344dda72b2 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 20 Jan 2022 15:42:34 -0500 Subject: Remove unnecessary check in Type.function --- python/types.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'python/types.py') diff --git a/python/types.py b/python/types.py index ac5d75f8..3d48afc2 100644 --- a/python/types.py +++ b/python/types.py @@ -1768,8 +1768,6 @@ class Type: :param CallingConvention calling_convention: optional argument for the function calling convention :param bool variable_arguments: optional boolean, true if the function has a variable number of arguments """ - if params is None: - params = None return FunctionType.create(ret, params, calling_convention, variable_arguments, stack_adjust) @staticmethod -- cgit v1.3.1