To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 1cc2298c authored by Stefan Marr's avatar Stefan Marr
Browse files

Fixed broken method lookup


Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 1b856e76
......@@ -84,14 +84,15 @@ class Class(Object):
def lookup_invokable(self, signature):
# Lookup invokable and return if found
invokable = self._invokables_table[signature]
invokable = self._invokables_table.get(signature, None)
if invokable:
return invokable
# Lookup invokable with given signature in array of instance invokables
for i in range(0, self.get_number_of_instance_invokables()):
invokable = self.get_instance_invokable(i)
# Return the invokable if the signature matches
if self.get_instance_invokable(i).get_signature() == signature:
if invokable.get_signature() == signature:
self._invokables_table[signature] = invokable
return invokable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment