Skip to content

Commit 730047e

Browse files
committed
reduce LOCs by 1
1 parent b8b666c commit 730047e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/django_idom/hooks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,9 @@ def use_mutation(*args: Any, **kwargs: Any) -> Mutation[_Params]:
246246
"""
247247

248248
if isinstance(args[0], MutationOptions):
249-
_args = use_mutation_args_1(*args, **kwargs)
249+
mutation_options, mutation, refetch = use_mutation_args_1(*args, **kwargs)
250250
else:
251-
_args = use_mutation_args_2(*args, **kwargs)
252-
mutation_options, mutation, refetch = _args
251+
mutation_options, mutation, refetch = use_mutation_args_2(*args, **kwargs)
253252

254253
loading, set_loading = use_state(False)
255254
error, set_error = use_state(cast(Union[Exception, None], None))

0 commit comments

Comments
 (0)