Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance++ #97

Merged
merged 5 commits into from Jan 24, 2022
Merged

Performance++ #97

merged 5 commits into from Jan 24, 2022

Conversation

N1kO23
Copy link
Contributor

@N1kO23 N1kO23 commented Jan 22, 2022

Some changes to clean things up a bit

@3eif
Copy link
Owner

3eif commented Jan 22, 2022

Is this PR still in progress?

@N1kO23
Copy link
Contributor Author

N1kO23 commented Jan 22, 2022

Not necessarily, you can merge it if you want

Copy link
Owner

@3eif 3eif left a comment

Choose a reason for hiding this comment

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

Looks good, just address the comments I made and I'll merge!

query = args.slice(1).join(' ');
source = 'youtube';
const platform = args[0].toLowerCase();
query = args.slice(1).join(' ');
Copy link
Owner

Choose a reason for hiding this comment

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

This only works if a platform and a query are provided. It will not work if only a query is provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh I see it now, I will fix this in next commit

if (!u.bio) bio = 'No bio set. To set your bio type `ear bio <desired bio>`';
else bio = u.bio;

const bio = u ? u.bio : 'No bio set. To set your bio type `ear bio <desired bio>`';
Copy link
Owner

Choose a reason for hiding this comment

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

The if statement above already checks if there is a user. This should be changed to u.bio ? u.bio : '...';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, didn't think of that. I will change that to nullish coalescing operator

@3eif 3eif merged commit 4f23995 into 3eif:master Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants