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

Conversation

Projects
None yet
2 participants
@c-w
Copy link
Member

commented Jul 3, 2017

No functional change.

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

@jcjimenez
Copy link
Contributor

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);

This comment has been minimized.

Copy link
@jcjimenez

jcjimenez Jul 3, 2017

Contributor

Good catch!

This comment has been minimized.

Copy link
@c-w

c-w Jul 3, 2017

Author Member

Literally ;)

@c-w c-w merged commit 765aa15 into master Jul 3, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@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.
You can’t perform that action at this time.