Verified Commit 4e767a7b authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Remove 'res is None' test from KeyData.get_uid()

While this could techincally allow reusing already parsed values for
uid, debexpo doesn't call this function twice for the same uid.
parent e3c0cae4
...@@ -241,8 +241,6 @@ class KeyData(): ...@@ -241,8 +241,6 @@ class KeyData():
def get_uid(self, uid): def get_uid(self, uid):
uidfpr = uid[7] uidfpr = uid[7]
res = self.uids.get(uidfpr, None)
if res is None:
self.uids[uidfpr] = res = Uid(self, uid) self.uids[uidfpr] = res = Uid(self, uid)
return res return res
......
Supports Markdown
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