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

Feature/improve service logger #81

Merged
merged 2 commits into from
Dec 6, 2022
Merged

Conversation

ptoussai
Copy link
Contributor

@ptoussai ptoussai commented Dec 6, 2022

No description provided.


export class Service {
initialized = false
#loggerName = null
Copy link
Contributor

@lehni lehni Dec 6, 2022

Choose a reason for hiding this comment

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

In JS you don't need to intialize the value here if you set it in the constructor, you're essentially setting it twice in each initialisation. Could just be #loggerName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I need to declare it but not to initialise it

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, the declaration bit is a bit unusual for JS, but apparently needed for private properties.

@lehni lehni merged commit 59f603e into master Dec 6, 2022
@lehni lehni deleted the feature/improve-service-logger branch April 14, 2023 14:07
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.

2 participants