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

docs: example require #1136

Merged
merged 3 commits into from
May 18, 2023
Merged

docs: example require #1136

merged 3 commits into from
May 18, 2023

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented May 2, 2023

No description provided.

@trim21 trim21 marked this pull request as ready for review May 2, 2023 12:44
Comment on lines +23 to +24
var Minio = require('minio')
var Helpers = require('minio/dist/main/helpers')
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to start modifying the variable instance with const rather than var?

Copy link
Contributor Author

@trim21 trim21 May 5, 2023

Choose a reason for hiding this comment

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

I don't think it matters in example. But it's better we perfer const in src code.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it would be a way to say that the library has been modernized. But it's okay if we're still using var on examples.

Copy link
Contributor Author

@trim21 trim21 May 5, 2023

Choose a reason for hiding this comment

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

prefer-const is previous disabled in eslint, I don't know how maintainers think. And I don't care much about code style in examples...

@prakashsvmx prakashsvmx merged commit 838aa8f into minio:master May 18, 2023
@trim21 trim21 deleted the example-minio branch May 18, 2023 14:58
trim21 added a commit to trim21/minio-js that referenced this pull request May 24, 2023
Co-authored-by: Prakash Senthil Vel <[email protected]>
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