Apply suggestions from code review

Hopefully I can fix up my breakage...
This commit is contained in:
ikelos
2025-01-30 11:04:58 +00:00
committed by GitHub
parent e66d6745ef
commit d3e55db41d
@@ -2173,8 +2173,7 @@ class sock(objects.StructType):
return linux_constants.SOCK_FAMILY[family_idx]
def get_type(self):
return linux_constants.
.get(self.sk_type, "")
return linux_constants.SOCK_TYPES.get(self.sk_type, "")
def get_inode(self):
if not self.sk_socket: