Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Refactor unnecessary `else` / `elif` when `if` block has a `raise` statement (#1205)

deepsource-autofix[bot]f8e41b2fea30
diff --git a/kornia/augmentation/container/augment.py b/kornia/augmentation/container/augment.py
index f633f0d41..a1ce126d2 100644
--- a/kornia/augmentation/container/augment.py
+++ b/kornia/augmentation/container/augment.py
@@ -252,8 +252,7 @@ class AugmentationSequential(ImageSequential):
"No parameters avaliable for inversing, please run a forward pass first "
"or passing valid params into this function."
)
- else:
- params = self._params
+ params = self._params
outputs = []
for input, dcate in zip(args, data_keys):