mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
request: Remove redundant str_validator=check_string from REQ().
REQ(str_validator=check_string) is equivalent to the default behavior of REQ(). Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
8f0f0b9e91
commit
93d2ae8092
@@ -68,7 +68,7 @@ def register_remote_server(
|
||||
str_validator=check_string_fixed_length(RemoteZulipServer.API_KEY_LENGTH)
|
||||
),
|
||||
hostname: str = REQ(str_validator=check_capped_string(RemoteZulipServer.HOSTNAME_MAX_LENGTH)),
|
||||
contact_email: str = REQ(str_validator=check_string),
|
||||
contact_email: str = REQ(),
|
||||
new_org_key: Optional[str] = REQ(
|
||||
str_validator=check_string_fixed_length(RemoteZulipServer.API_KEY_LENGTH), default=None
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user