Simplified validate check

This commit is contained in:
Martijn van Groningen 2013-06-17 10:36:38 +02:00
parent b7cb479a72
commit e7d13971f3
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class UpdateRequest extends InstanceShardOperationRequest<UpdateRequest>
if (script != null && doc != null) {
validationException = addValidationError("can't provide both script and doc", validationException);
}
if(doc == null && docAsUpsert == true){
if(doc == null && docAsUpsert){
validationException = addValidationError("can't say to upsert doc without providing doc", validationException);
}
return validationException;