If not allowing unresolved, optimize resolve status computation for List

This commit is contained in:
Havoc Pennington 2014-12-27 16:41:47 -05:00
parent 51d94fc357
commit 94dda5f9cf

View File

@ -125,8 +125,7 @@ final class SimpleConfigList extends AbstractConfigValue implements ConfigList,
throws NotPossibleToResolve {
return context.resolve(v);
}
}, null /* don't force resolve status -- could be allowing unresolved */);
}, context.options().getAllowUnresolved() ? null : ResolveStatus.RESOLVED);
} catch (NotPossibleToResolve e) {
throw e;
} catch (RuntimeException e) {