File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def can_install(
5353 project : Project | None = None ,
5454 ) -> bool :
5555 """Only useful for Unknown Horizons project."""
56- if not component or component .project .slug != "uh" :
56+ if component is None or component .project .slug != "uh" :
5757 return False
5858 return super ().can_install (component = component , project = project )
5959
@@ -76,7 +76,7 @@ def can_install(
7676 project : Project | None = None ,
7777 ) -> bool :
7878 # Only instalable on the sandbox project
79- return component and component .project .slug == "sandbox"
79+ return component is not None and component .project .slug == "sandbox"
8080
8181 def daily (self , component : Component , activity_log_id : int | None = None ) -> None :
8282 component .do_reset ()
You can’t perform that action at this time.
0 commit comments