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

cr a func #2590

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

cr a func #2590

wants to merge 2 commits into from

Conversation

OPTIMISTIXX
Copy link

No description provided.

break;

default:
break;

Choose a reason for hiding this comment

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

The default case in the switch statement is a no-op and can be removed.

Comment on lines 16 to 18
for (const key in extraData) {
state[key] = extraData[key];
}

Choose a reason for hiding this comment

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

Use the Object.assign() method instead

const { type } = action;

switch (type) {
case 'addProperties':

Choose a reason for hiding this comment

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

Would be great to create variables for string values to avoid errors due to typos.

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Great work!

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.

3 participants