GUACAMOLE-96: Rearrange logic of DecoratingDirectory.get() to make more intuitive sense.
This commit is contained in:
1 parent
63bb3a033a
commit
1c99f6a8cf
1 file changed
+4
-3
@@ -99,10 +99,11 @@ public abstract class DecoratingDirectory<ObjectType extends Identifiable>
|
||||
|
||||
// Decorate only if object exists
|
||||
ObjectType object = super.get(identifier);
|
||||
if (object == null)
|
||||
return object;
|
||||
if (object != null)
|
||||
return decorate(object);
|
||||
|
||||
return null;
|
||||
|
||||
return decorate(object);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user