Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Refactor code #167

Open
ya7on opened this issue Feb 11, 2019 · 0 comments
Open

Refactor code #167

ya7on opened this issue Feb 11, 2019 · 0 comments

Comments

@ya7on
Copy link
Contributor

ya7on commented Feb 11, 2019

We need to fix some places in our code.

  • toString method we are used for strings. It is overcode. We need to remove it.
    msg.message.user.name is already string. We do not need to convert it to string.
    image
  • We use let operator for names that we are not been changing. The good solution would be replace it to const operator.
    For example this place. We assign these names only one time. It is redundant to keep their values in variables.
    image
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant