Remove null check because of guarantee of non-null
Change-Id: I447532cae2f8cf801a8560e20e74df94f2f5e5ec
Showing
1 changed file
with
0 additions
and
3 deletions
... | @@ -138,9 +138,6 @@ public class PathIntentInstaller implements IntentInstaller<PathIntent> { | ... | @@ -138,9 +138,6 @@ public class PathIntentInstaller implements IntentInstaller<PathIntent> { |
138 | * @return allocated resources if any are required, null otherwise | 138 | * @return allocated resources if any are required, null otherwise |
139 | */ | 139 | */ |
140 | private LinkResourceAllocations allocateResources(PathIntent intent) { | 140 | private LinkResourceAllocations allocateResources(PathIntent intent) { |
141 | - if (intent.constraints() == null) { | ||
142 | - return null; | ||
143 | - } | ||
144 | LinkResourceRequest.Builder builder = | 141 | LinkResourceRequest.Builder builder = |
145 | DefaultLinkResourceRequest.builder(intent.id(), intent.path().links()); | 142 | DefaultLinkResourceRequest.builder(intent.id(), intent.path().links()); |
146 | for (Constraint constraint : intent.constraints()) { | 143 | for (Constraint constraint : intent.constraints()) { | ... | ... |
-
Please register or login to post a comment