···8585def bootstrap_input_stream() -> BaseInputStream[BaseAckingContext[Action]] | None:
8686 load_all_osprey_plugins()
87878888- streams = plugin_manager.hook.register_input_stream()
8989- if streams:
9090- # spec has firstresult=True set, so at most it will be one.
9191- return streams[0]
8888+ # spec has firstresult=True set, so it will return the first registered stream if one is registered
8989+ stream = plugin_manager.hook.register_input_stream()
9090+ if stream:
9191+ return stream
9292 else:
9393 return None