Skip to content

Commit 1e3354c

Browse files
committed
Remove option none
1 parent 5cbd39a commit 1e3354c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

meilisearch/client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ def create_key(
280280
MeiliSearchApiError
281281
An error containing details about why MeiliSearch can't process your request. MeiliSearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
282282
"""
283-
if options is None:
284-
options= {}
285283
payload = {**options}
286284
return self.http.post(f'{self.config.paths.keys}', payload)
287285

@@ -312,8 +310,6 @@ def udpate_key(
312310
MeiliSearchApiError
313311
An error containing details about why MeiliSearch can't process your request. MeiliSearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
314312
"""
315-
if options is None:
316-
options= {}
317313
payload = {**options}
318314
url = f'{self.config.paths.keys}/{key}'
319315
return self.http.patch(url, payload)

0 commit comments

Comments
 (0)