Simplify if-statement
Change-Id: Ifa3dbc6f4bbace1db4d2998a9c8de0cc2c404ab4
Showing
1 changed file
with
1 additions
and
6 deletions
| ... | @@ -146,12 +146,7 @@ class TransactionalContinuousResourceStore { | ... | @@ -146,12 +146,7 @@ class TransactionalContinuousResourceStore { |
| 146 | return false; | 146 | return false; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | - boolean success = appendValue(original, new ResourceAllocation(request, consumer)); | 149 | + return appendValue(original, new ResourceAllocation(request, consumer)); |
| 150 | - if (!success) { | ||
| 151 | - return false; | ||
| 152 | - } | ||
| 153 | - | ||
| 154 | - return true; | ||
| 155 | } | 150 | } |
| 156 | 151 | ||
| 157 | // Appends the specified ResourceAllocation to the existing values stored in the map | 152 | // Appends the specified ResourceAllocation to the existing values stored in the map | ... | ... |
-
Please register or login to post a comment