Skip to content
This repository has been archived by the owner. It is now read-only.

Remove duplicate catch #37

Merged
merged 1 commit into from Jul 3, 2017
Merged

Remove duplicate catch #37

merged 1 commit into from Jul 3, 2017

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jul 3, 2017

No functional change.

@c-w c-w requested a review from jcjimenez Jul 3, 2017
Copy link
Contributor

@jcjimenez jcjimenez left a comment

LGTM

.then(rows => {
if (rows.length < 1) return reject(`Could not find site with id ${siteId}`);
if (rows.length > 1) return reject(`Got more than one site (got ${rows.length}) with id '${siteId}'`);

const site = cassandraRowToSite(rows[0]);
resolve({sites:[site]});
})
.catch(reject)
;
.catch(reject);
Copy link
Contributor

@jcjimenez jcjimenez Jul 3, 2017

Good catch!

Copy link
Contributor Author

@c-w c-w Jul 3, 2017

Literally ;)

@c-w c-w merged commit 765aa15 into master Jul 3, 2017
2 checks passed
@c-w c-w deleted the nitpick branch Jul 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants