Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Caleb St. John <[email protected]>
  • Loading branch information
themylogin and yocalebo authored Jan 24, 2025
1 parent 8ddff57 commit f622a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ def event_subscribe(self, name, handler):
def event_register(self, name, description, *, private=False, returns=None, models=None, no_auth_required=False,
no_authz_required=False, roles=None):
"""
All events middleware can send should be registered, so they are properly documented
and can be browsed in documentation page without source code inspection.
All middleware events should be registered, so they are properly documented
and can be browsed in the API documentation without having to inspect source code.
"""
roles = roles or []
self.events.register(name, description, private, returns, models, no_auth_required, no_authz_required, roles)
Expand Down

0 comments on commit f622a89

Please sign in to comment.