You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/04/29 13:31:59 UTC

[commons-vfs] branch master updated: Simplify.

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


The following commit(s) were added to refs/heads/master by this push:
     new 39dde2c  Simplify.
39dde2c is described below

commit 39dde2c1cdf88415f9cc7a6b845451714b71bdd5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Apr 29 09:31:56 2019 -0400

    Simplify.
---
 .../java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java
index e361207..424199d 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java
@@ -99,11 +99,9 @@ public final class UserAuthenticatorUtils {
      * @param authData The UserAuthenticationDAta.
      */
     public static void cleanup(final UserAuthenticationData authData) {
-        if (authData == null) {
-            return;
+        if (authData != null) {
+            authData.cleanup();
         }
-
-        authData.cleanup();
     }
 
     /**