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-configuration.git

commit d6224a041b00537f096ada4cc81fc52447c368bc
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 25 16:47:51 2023 -0400

    Inline single-use variable
---
 .../org/apache/commons/configuration2/resolver/CatalogResolver.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java 
b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
index d5a424c0..00c8942c 100644
--- 
a/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
+++ 
b/src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java
@@ -233,8 +233,7 @@ public class CatalogResolver implements EntityResolver {
      * @return the URL pointing to the file
      */
     private static URL locate(final FileSystem fs, final String basePath, 
final String name) {
-        final FileLocator locator = 
FileLocatorUtils.fileLocator().fileSystem(fs).basePath(basePath).fileName(name).create();
-        return FileLocatorUtils.locate(locator);
+        return 
FileLocatorUtils.locate(FileLocatorUtils.fileLocator().fileSystem(fs).basePath(basePath).fileName(name).create());
     }
 
     /**

Reply via email to