This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-validator.git

commit 47a90bb9fe3d824a24919ccf0fa15f34b13f0916
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jan 29 14:58:30 2023 -0500

    In inline single-use local
---
 .../apache/commons/validator/routines/checkdigit/IBANCheckDigit.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
 
b/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
index 91b37219..1f2a18fe 100644
--- 
a/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
+++ 
b/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
@@ -77,8 +77,7 @@ public final class IBANCheckDigit implements CheckDigit, 
Serializable {
             return false;
         }
         try {
-            final int modulusResult = calculateModulus(code);
-            return modulusResult == 1;
+            return calculateModulus(code) == 1;
         } catch (final CheckDigitException ex) {
             return false;
         }

Reply via email to