Skip to content

Commit

Permalink
Reduce code duplication in getOptimizedActionList.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Nov 6, 2014
1 parent 4dcebd1 commit ae35d26
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -44,11 +44,7 @@ public void setActionFactory(final AbstractActionFactory<D, L> factory){
*/
public L getOptimizedActionList(final String path, final String permission)
{
if (factory == null){
setActionFactory();
}
final String value = this.getString(path);
return factory.createActionList(value, permission).getOptimizedCopy(this);
return getDefaultActionList(path, permission).getOptimizedCopy(this);
}

/**
Expand Down

0 comments on commit ae35d26

Please sign in to comment.