From 3d4d20614cbdfd062592c8aaeba065193e0b2322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 5 Dec 2022 19:23:48 +0800 Subject: [PATCH] Removed a redundant return in the _validate_code_parent_exists method of the AccountForm form. --- src/accounting/forms.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/accounting/forms.py b/src/accounting/forms.py index 1af57f5..3650f7e 100644 --- a/src/accounting/forms.py +++ b/src/accounting/forms.py @@ -603,7 +603,6 @@ class AccountForm(forms.Form): code="code_unique") self.add_error("code", error) raise error - return def _validate_code_descendant_code_size(self) -> None: """Validates whether the codes of the descendants will be too long.