mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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
|
// Decorate only if object exists
|
||||||
ObjectType object = super.get(identifier);
|
ObjectType object = super.get(identifier);
|
||||||
if (object == null)
|
if (object != null)
|
||||||
return object;
|
return decorate(object);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
|
||||||
return decorate(object);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user