Skip to content
This repository has been archived by the owner on Mar 7, 2018. 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 July 3, 2017 22:13
Copy link
Contributor

@jcjimenez jcjimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Literally ;)

@c-w c-w merged commit 765aa15 into master Jul 3, 2017
@c-w c-w deleted the nitpick branch July 3, 2017 22:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants