GUACAMOLE-96: Rearrange logic of DecoratingDirectory.get() to make more intuitive sense.

This commit is contained in:
Michael Jumper
2018-01-17 18:41:36 -08:00
parent 63bb3a033a
commit 1c99f6a8cf

View File

@@ -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