From 11ad894bcb56e44ca9a2c41525c2a4864d12ade3 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Mon, 22 Jul 2024 17:53:28 -0400 Subject: [PATCH] Simplify variable name. --- .../com/ibm/wala/cast/python/parser/PythonModuleParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.ibm.wala.cast.python.jython3/source/com/ibm/wala/cast/python/parser/PythonModuleParser.java b/com.ibm.wala.cast.python.jython3/source/com/ibm/wala/cast/python/parser/PythonModuleParser.java index 1be2b4bc..5943b07f 100644 --- a/com.ibm.wala.cast.python.jython3/source/com/ibm/wala/cast/python/parser/PythonModuleParser.java +++ b/com.ibm.wala.cast.python.jython3/source/com/ibm/wala/cast/python/parser/PythonModuleParser.java @@ -261,16 +261,16 @@ private String resolveRelativeImport(String importName) { } private int getNumberOfBeginningDots(String string) { - int numBeginningDots = 0; + int ret = 0; for (int i = 0; i < string.length(); i++) { char character = string.charAt(i); - if (character == '.') ++numBeginningDots; + if (character == '.') ++ret; else break; } - return numBeginningDots; + return ret; } }; }