Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Update delegate commands to typescript - Closes #657 #673

Merged
merged 3 commits into from
Dec 13, 2018

Conversation

shuse2
Copy link
Contributor

@shuse2 shuse2 commented Nov 30, 2018

Description

Update delegate commands to typescript

Review checklist

@shuse2 shuse2 force-pushed the 657-update_delegate_cmd_ts branch from 9795fa7 to 859cf5e Compare December 5, 2018 14:37
@shuse2 shuse2 changed the base branch from 656-update_config_cmd_ts to 649-convert_to_typescript December 11, 2018 13:57
@@ -42,7 +49,7 @@ const processFlagInputs = (limitStr, offsetStr, sortStr) => {
) {
throw new Error('Offset must be an integer and greater than or equal to 0');
}
if (!VOTES_SORT_FIELDS.includes(sort)) {
if (sort !== undefined && !VOTES_SORT_FIELDS.includes(sort)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use falsy to check if undefined !sort

Copy link
Contributor

@ishantiw ishantiw left a comment

Choose a reason for hiding this comment

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

Everything looks good, just a small comment

@shuse2 shuse2 merged commit e0370bf into 649-convert_to_typescript Dec 13, 2018
@shuse2 shuse2 deleted the 657-update_delegate_cmd_ts branch December 13, 2018 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants