Skip to content

Commit

Permalink
sym: avoid comparison of None
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Jul 4, 2024
1 parent 95aa263 commit 4279156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bsc/sym.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def has_access_to(self, other):
case AccessModifier.public:
return True # other is public
case AccessModifier.internal:
return self.get_pkg() == other.get_pkg()
if self_pkg := self.get_pkg():
if other_pkg := other.get_pkg():
return self_pkg == other_pkg
case AccessModifier.private:
if self_mod := self.get_mod():
if other_mod := other.get_mod():
Expand Down

0 comments on commit 4279156

Please sign in to comment.