Always return on error. The main body of a function shouldn't be inside a conditional.

```js
if ( error ) {
    logger( error );
    return;
}

db.updateRepoMeta( ... );
```