commit | 7135a90a6c1e3e67e0dc9f1e47cb49a55c8ce7df | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 13:52:51 2016 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 13:52:51 2016 -0700 |
tree | b09028e45a57226135ef1250436149a051173e22 | |
parent | d82dc5b31b90584ad1a3f4cecc4061da9bc537ba [diff] |
Simplify if-statement Change-Id: Ifa3dbc6f4bbace1db4d2998a9c8de0cc2c404ab4
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java index ea289d4..7de85f8 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java
@@ -146,12 +146,7 @@ return false; } - boolean success = appendValue(original, new ResourceAllocation(request, consumer)); - if (!success) { - return false; - } - - return true; + return appendValue(original, new ResourceAllocation(request, consumer)); } // Appends the specified ResourceAllocation to the existing values stored in the map