I think that it could be better

```js
 if (typeof v === 'object') {
   setIndex(v);
 }
 revisionId = datastore.revisionId;
```