mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Make boolean operator precedence unambiguous in ClaimsListShard
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132442796
This commit is contained in:
parent
8cfa643598
commit
2b42118aaf
1 changed files with 3 additions and 2 deletions
|
@ -181,7 +181,8 @@ public class ClaimsListShard extends ImmutableObject {
|
|||
ofy().transactNew(new VoidWork() {
|
||||
@Override
|
||||
public void vrun() {
|
||||
verify(getCurrentRevision() == null && oldRevision == null
|
||||
verify(
|
||||
(getCurrentRevision() == null && oldRevision == null)
|
||||
|| getCurrentRevision().equals(oldRevision),
|
||||
"ClaimsList on Registries was updated by someone else while attempting to update.");
|
||||
ofy().saveWithoutBackup().entity(ClaimsListSingleton.create(parentKey));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue