mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-96: Rearrange logic of DecoratingDirectory.get() to make more intuitive sense.
This commit is contained in:
@@ -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