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

frontend get rid of explicite use of "default" #1191

Open
kristinagalik opened this issue Apr 14, 2023 · 0 comments
Open

frontend get rid of explicite use of "default" #1191

kristinagalik opened this issue Apr 14, 2023 · 0 comments
Labels
frontend Frontend related task/PR

Comments

@kristinagalik
Copy link
Contributor

kristinagalik commented Apr 14, 2023

v projekte je viac instances kde sa pouziva takyto kus kodu:

const configIdStr = configId !== undefined ? configId.toString() : "default";

  • "default" by mal byt niekde ako premenna
  • number na string je snad implicitní. Takže toString() je zbytečné

(mozno pripadne urobit daku funkciu kedze je tento isty riadok/logika v projekte vela krat)

@kristinagalik kristinagalik added the frontend Frontend related task/PR label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend related task/PR
Projects
None yet
Development

No branches or pull requests

1 participant