Skip to content

Commit f562e0c

Browse files
committed
removed redundant continues
Signed-off-by: bluna301 <[email protected]>
1 parent cca0b15 commit f562e0c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

monai/deploy/operators/monai_seg_inference_operator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,21 @@ def filter_sw_kwargs(**kwargs) -> Tuple[Dict[str, Any], Dict[str, Any]]:
121121
# Drop explicitly defined kwargs
122122
if name in init_params or name in explicit_used:
123123
logger.warning(f"{name!r} is already explicitly defined or used; dropping kwarg.")
124-
continue
125124
# SWI params
126125
elif name in swi_params:
127126
filtered_swi_params[name] = val
128127
logger.debug(f"{name!r} used in sliding_window_inference; keeping kwarg for inference call.")
129-
continue
130128
# Drop kwargs that can't be converted by Holoscan
131129
elif not isinstance(val, allowed_types):
132130
logger.warning(
133131
f"{name!r} type of {type(val).__name__!r} is a non-convertible kwarg for Holoscan; dropping kwarg."
134132
)
135-
continue
136133
# Base __init__ params
137134
else:
138135
filtered_base_init_params[name] = val
139136
logger.debug(
140137
f"{name!r} type of {type(val).__name__!r} can be converted by Holoscan; keeping kwarg for base init."
141138
)
142-
continue
143139
return filtered_swi_params, filtered_base_init_params
144140

145141
def __init__(

0 commit comments

Comments
 (0)