Skip to content

Commit 0b829ad

Browse files
committed
simplify function for coverage
1 parent 7fe1dbb commit 0b829ad

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

django_typer/management/__init__.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,9 @@ def _get_common_params(
294294
_common_options
295295
)[0]
296296
suppressed = _normalize_suppressed_arguments(command)
297-
if suppressed:
298-
return [
299-
param
300-
for param in _common_params
301-
if param.name and param.name not in suppressed
302-
]
303-
return _common_params
297+
return [
298+
param for param in _common_params if param.name and param.name not in suppressed
299+
]
304300

305301

306302
COMMON_DEFAULTS = {

0 commit comments

Comments
 (0)